mirror of
https://github.com/postgres/postgres.git
synced 2025-06-11 20:28:21 +03:00
Standard pgindent run for 8.1.
This commit is contained in:
@ -48,17 +48,17 @@ typedef struct
|
||||
* Note: The factor 0.49 in following macro avoids floating point overflows
|
||||
*/
|
||||
#define penalty_num(result,olower,oupper,nlower,nupper) do { \
|
||||
double tmp = 0.0F; \
|
||||
(*(result)) = 0.0F; \
|
||||
double tmp = 0.0F; \
|
||||
(*(result)) = 0.0F; \
|
||||
if ( (nupper) > (oupper) ) \
|
||||
tmp += ( ((double)nupper)*0.49F - ((double)oupper)*0.49F ); \
|
||||
if ( (olower) > (nlower) ) \
|
||||
tmp += ( ((double)olower)*0.49F - ((double)nlower)*0.49F ); \
|
||||
if (tmp > 0.0F) \
|
||||
{ \
|
||||
(*(result)) += FLT_MIN; \
|
||||
(*(result)) += (float) ( ((double)(tmp)) / ( (double)(tmp) + ( ((double)(oupper))*0.49F - ((double)(olower))*0.49F ) ) ); \
|
||||
(*(result)) *= (FLT_MAX / (((GISTENTRY *) PG_GETARG_POINTER(0))->rel->rd_att->natts + 1)); \
|
||||
(*(result)) += FLT_MIN; \
|
||||
(*(result)) += (float) ( ((double)(tmp)) / ( (double)(tmp) + ( ((double)(oupper))*0.49F - ((double)(olower))*0.49F ) ) ); \
|
||||
(*(result)) *= (FLT_MAX / (((GISTENTRY *) PG_GETARG_POINTER(0))->rel->rd_att->natts + 1)); \
|
||||
} \
|
||||
} while (0);
|
||||
|
||||
|
Reference in New Issue
Block a user