This is related to https://github.com/FirebirdSQL/firebird/pull/6852 For big endian ttmath library should not be used