(restype)
Return whether a method returning the given type must be called using ``objc_msgSend_fpret``
    on the current system.
Return whether a method returning the given type must be called using ``objc_msgSend_fpret``
    on the current system.
Return whether a method returning the given type must be called using objc_msgSend_fpret on the current system .
def should_use_fpret(restype):
    """Return whether a method returning the given type must be called using ``objc_msgSend_fpret``
    on the current system.
    """

    if __x86_64__:
        # On x86_64: Use only for long double.
        return restype == c_longdouble
    elif __i386__:
        # On i386: Use for all floating-point types.
        return restype in (c_float, c_double, c_longdouble)
    else:
        # Other platforms: Doesn't exist.
        return False
def should_use_fpret ( restype ) : if __x86_64__ : # On x86_64: Use only for long double. return restype == c_longdouble elif __i386__ : # On i386: Use for all floating-point types. return restype in ( c_float , c_double , c_longdouble ) else : # Other platforms: Doesn't exist. return False