public static String stringFor ( int n ) { if ( n == 0 ) { return "CU_STREAM_WAIT_VALUE_GEQ" ; } String result = "" ; if ( ( n & CU_STREAM_WAIT_VALUE_EQ ) != 0 ) result += "CU_STREAM_WAIT_VALUE_EQ " ; if ( ( n & CU_STREAM_WAIT_VALUE_AND ) != 0 ) result += "CU_STREAM_WAIT_VALUE_AND " ; if ( ( n & CU_STREAM_WAIT_VALUE_NOR ) != 0 ) result += "CU_STREAM_WAIT_VALUE_NOR " ; if ( ( n & CU_STREAM_WAIT_VALUE_FLUSH ) != 0 ) result += "CU_STREAM_WAIT_VALUE_FLUSH " ; return result ; }
Returns the String identifying the given CUstreamWaitValue_flags