Tests/testImmediates.cpp
/**
 * Used to check translation of immediate values.
 * This doesn't appear to do anything useful, but it does.
 */
Used to check translation of immediate values.
This doesn't appear to do anything useful, but it does.
Used to check translation of immediate values . This doesn ' t appear to do anything useful but it does .
void immediate_kernel(Int::Ptr int_result, Float::Ptr float_result) {
  *int_result   =  25;      int_result.inc();    
  *int_result   =  15;      int_result.inc();    
  *int_result   = -25;                           
  *float_result =  25.0f;   float_result.inc();
  *float_result = -25.0f;   float_result.inc();  
  *float_result =   0.225f; float_result.inc();  
  *float_result = 0.0f;
}
void immediate_kernel ( Int :: Ptr int_result , Float :: Ptr float_result ) { * int_result = 25 ; int_result . inc ( ) ; * int_result = 15 ; int_result . inc ( ) ; * int_result = -25 ; * float_result = 25.0f ; float_result . inc ( ) ; * float_result = -25.0f ; float_result . inc ( ) ; * float_result = 0.225f ; float_result . inc ( ) ; * float_result = 0.0f ; }
Used to check translation of immediate values.
Used to check translation of immediate values .
// failed at one time // failed at one time // Negative values should work as well // Should work as well for floats that are int's // failed at one time // Other test values