include/SDL_test_random.h
changeset 7191 75360622e65f
parent 6885 700f1b25f77f
child 8149 681eb46b8ac4
     1.1 --- a/include/SDL_test_random.h	Sat May 18 12:48:50 2013 -0700
     1.2 +++ b/include/SDL_test_random.h	Sat May 18 14:17:52 2013 -0700
     1.3 @@ -21,20 +21,20 @@
     1.4  
     1.5  /**
     1.6   *  \file SDL_test_random.h
     1.7 - *  
     1.8 + *
     1.9   *  Include file for SDL test framework.
    1.10   *
    1.11   *  This code is a part of the SDL2_test library, not the main SDL library.
    1.12   */
    1.13  
    1.14 -/* 
    1.15 +/*
    1.16  
    1.17 - A "32-bit Multiply with carry random number generator. Very fast. 
    1.18 - Includes a list of recommended multipliers.                         
    1.19 + A "32-bit Multiply with carry random number generator. Very fast.
    1.20 + Includes a list of recommended multipliers.
    1.21  
    1.22   multiply-with-carry generator: x(n) = a*x(n-1) + carry mod 2^32.
    1.23   period: (a*2^31)-1
    1.24 - 
    1.25 +
    1.26  */
    1.27  
    1.28  #ifndef _SDL_test_random_h
    1.29 @@ -43,9 +43,7 @@
    1.30  #include "begin_code.h"
    1.31  /* Set up for C function definitions, even when using C++ */
    1.32  #ifdef __cplusplus
    1.33 -/* *INDENT-OFF* */
    1.34  extern "C" {
    1.35 -/* *INDENT-ON* */
    1.36  #endif
    1.37  
    1.38  /* --- Definitions */
    1.39 @@ -53,7 +51,7 @@
    1.40  /*
    1.41   * Macros that return a random number in a specific format.
    1.42   */
    1.43 -#define SDLTest_RandomInt(c)		((int)SDLTest_Random(c))
    1.44 +#define SDLTest_RandomInt(c)        ((int)SDLTest_Random(c))
    1.45  
    1.46  /*
    1.47   * Context structure for the random number generator state.
    1.48 @@ -70,7 +68,7 @@
    1.49  /* --- Function prototypes */
    1.50  
    1.51  /**
    1.52 - *  \brief Initialize random number generator with two integers. 
    1.53 + *  \brief Initialize random number generator with two integers.
    1.54   *
    1.55   *  Note: The random sequence of numbers returned by ...Random() is the
    1.56   *  same for the same two integers and has a period of 2^31.
    1.57 @@ -81,10 +79,10 @@
    1.58   *
    1.59   */
    1.60   void SDLTest_RandomInit(SDLTest_RandomContext * rndContext, unsigned int xi,
    1.61 -				  unsigned int ci);
    1.62 +                  unsigned int ci);
    1.63  
    1.64  /**
    1.65 - *  \brief Initialize random number generator based on current system time. 
    1.66 + *  \brief Initialize random number generator based on current system time.
    1.67   *
    1.68   *  \param rndContext     pointer to context structure
    1.69   *
    1.70 @@ -93,7 +91,7 @@
    1.71  
    1.72  
    1.73  /**
    1.74 - *  \brief Initialize random number generator based on current system time. 
    1.75 + *  \brief Initialize random number generator based on current system time.
    1.76   *
    1.77   *  Note: ...RandomInit() or ...RandomInitTime() must have been called
    1.78   *  before using this function.
    1.79 @@ -108,9 +106,7 @@
    1.80  
    1.81  /* Ends C function definitions when using C++ */
    1.82  #ifdef __cplusplus
    1.83 -/* *INDENT-OFF* */
    1.84  }
    1.85 -/* *INDENT-ON* */
    1.86  #endif
    1.87  #include "close_code.h"
    1.88