/*
 * @(#)jmath_md.h	1.5 96/11/23
 * 
 * Copyright (c) 1995, 1996 Sun Microsystems, Inc. All Rights Reserved.
 * 
 * This software is the confidential and proprietary information of Sun
 * Microsystems, Inc. ("Confidential Information").  You shall not
 * disclose such Confidential Information and shall use it only in
 * accordance with the terms of the license agreement you entered into
 * with Sun.
 * 
 * SUN MAKES NO REPRESENTATIONS OR WARRANTIES ABOUT THE SUITABILITY OF THE
 * SOFTWARE, EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE
 * IMPLIED WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR
 * PURPOSE, OR NON-INFRINGEMENT. SUN SHALL NOT BE LIABLE FOR ANY DAMAGES
 * SUFFERED BY LICENSEE AS A RESULT OF USING, MODIFYING OR DISTRIBUTING
 * THIS SOFTWARE OR ITS DERIVATIVES.
 * 
 * CopyrightVersion 1.1_beta
 * 
 */

#if defined(__solaris__)
#include <ieeefp.h>
#endif

#if !defined(__ppc__)
#define DREM(a,b) fmod(a,b)
#if defined(__solaris__)
#define IEEEREM(a,b) remainder(a,b)
#else
#define IEEEREM(a,b) fmod(a,b)
#endif

#else /* ppc */
/* linuxppc: PORT (addition of working modulo code) */
/* sbb: I'm being cautious right now and not mainlining the jdk_modulo
 * functions until I've had some experience with them. */
#include "jdk_modulo.h"
 
#define DREM(a,b) jdk_fmod(a,b)
#define IEEEREM(a,b) jdk_remainder(a,b)
#endif
