hexsha
stringlengths
40
40
size
int64
7
1.05M
ext
stringclasses
13 values
lang
stringclasses
1 value
max_stars_repo_path
stringlengths
4
269
max_stars_repo_name
stringlengths
5
108
max_stars_repo_head_hexsha
stringlengths
40
40
max_stars_repo_licenses
listlengths
1
9
max_stars_count
int64
1
191k
max_stars_repo_stars_event_min_datetime
stringlengths
24
24
max_stars_repo_stars_event_max_datetime
stringlengths
24
24
max_issues_repo_path
stringlengths
4
269
max_issues_repo_name
stringlengths
5
116
max_issues_repo_head_hexsha
stringlengths
40
40
max_issues_repo_licenses
listlengths
1
9
max_issues_count
int64
1
67k
max_issues_repo_issues_event_min_datetime
stringlengths
24
24
max_issues_repo_issues_event_max_datetime
stringlengths
24
24
max_forks_repo_path
stringlengths
4
269
max_forks_repo_name
stringlengths
5
116
max_forks_repo_head_hexsha
stringlengths
40
40
max_forks_repo_licenses
listlengths
1
9
max_forks_count
int64
1
105k
max_forks_repo_forks_event_min_datetime
stringlengths
24
24
max_forks_repo_forks_event_max_datetime
stringlengths
24
24
content
stringlengths
7
1.05M
avg_line_length
float64
1.21
330k
max_line_length
int64
6
990k
alphanum_fraction
float64
0.01
0.99
author_id
stringlengths
2
40
4b8bbbded467cad466b585b5f59ac99dee81a551
1,177
cpp
C++
android-31/android/drm/DrmConvertedStatus.cpp
YJBeetle/QtAndroidAPI
1468b5dc6eafaf7709f0b00ba1a6ec2b70684266
[ "Apache-2.0" ]
12
2020-03-26T02:38:56.000Z
2022-03-14T08:17:26.000Z
android-28/android/drm/DrmConvertedStatus.cpp
YJBeetle/QtAndroidAPI
1468b5dc6eafaf7709f0b00ba1a6ec2b70684266
[ "Apache-2.0" ]
1
2021-01-27T06:07:45.000Z
2021-11-13T19:19:43.000Z
android-30/android/drm/DrmConvertedStatus.cpp
YJBeetle/QtAndroidAPI
1468b5dc6eafaf7709f0b00ba1a6ec2b70684266
[ "Apache-2.0" ]
3
2021-02-02T12:34:55.000Z
2022-03-08T07:45:57.000Z
#include "../../JByteArray.hpp" #include "./DrmConvertedStatus.hpp" namespace android::drm { // Fields jint DrmConvertedStatus::STATUS_ERROR() { return getStaticField<jint>( "android.drm.DrmConvertedStatus", "STATUS_ERROR" ); } jint DrmConvertedStatus::STATUS_INPUTDATA_ERROR() { return getStaticField<jint>( "android.drm.DrmConvertedStatus", "STATUS_INPUTDATA_ERROR" ); } jint DrmConvertedStatus::STATUS_OK() { return getStaticField<jint>( "android.drm.DrmConvertedStatus", "STATUS_OK" ); } JByteArray DrmConvertedStatus::convertedData() { return getObjectField( "convertedData", "[B" ); } jint DrmConvertedStatus::offset() { return getField<jint>( "offset" ); } jint DrmConvertedStatus::statusCode() { return getField<jint>( "statusCode" ); } // QJniObject forward DrmConvertedStatus::DrmConvertedStatus(QJniObject obj) : JObject(obj) {} // Constructors DrmConvertedStatus::DrmConvertedStatus(jint arg0, JByteArray arg1, jint arg2) : JObject( "android.drm.DrmConvertedStatus", "(I[BI)V", arg0, arg1.object<jbyteArray>(), arg2 ) {} // Methods } // namespace android::drm
18.390625
78
0.692438
YJBeetle
4b8c0a1a8b99bfff9517b5566b0c5b6d66751cec
1,553
cpp
C++
examples/Threads/token.cpp
azerothcore/lib-ace
c1fedd5f2033951eee9ecf898f6f2b75584aaefc
[ "DOC" ]
null
null
null
examples/Threads/token.cpp
azerothcore/lib-ace
c1fedd5f2033951eee9ecf898f6f2b75584aaefc
[ "DOC" ]
null
null
null
examples/Threads/token.cpp
azerothcore/lib-ace
c1fedd5f2033951eee9ecf898f6f2b75584aaefc
[ "DOC" ]
1
2020-04-26T03:07:12.000Z
2020-04-26T03:07:12.000Z
// Test out the ACE Token class. #include "ace/OS_main.h" #include "ace/Token.h" #include "ace/Task.h" #include "ace/OS_NS_time.h" #if defined (ACE_HAS_THREADS) class My_Task : public ACE_Task<ACE_MT_SYNCH> { public: My_Task (int n); virtual int svc (void); static void sleep_hook (void *); private: ACE_Token token_; }; My_Task::My_Task (int n) { // Make this Task into an Active Object. this->activate (THR_BOUND | THR_DETACHED, n); // Wait for all the threads to exit. this->thr_mgr ()->wait (); } void My_Task::sleep_hook (void *) { ACE_DEBUG ((LM_ERROR, "(%u) blocking, My_Task::sleep_hook () called\n", ACE_Thread::self())) ; } // Test out the behavior of the ACE_Token class. int My_Task::svc (void) { for (size_t i = 0; i < 100; i++) { // Wait for up to 1 millisecond past the current time to get the token. ACE_Time_Value timeout (ACE_OS::time (0), 1000); if (this->token_.acquire (&My_Task::sleep_hook, 0, &timeout) == 1) { this->token_.acquire (); this->token_.renew (); this->token_.release (); this->token_.release (); } else ACE_Thread::yield (); } return 0; } int ACE_TMAIN (int argc, ACE_TCHAR *argv[]) { My_Task tasks (argc > 1 ? ACE_OS::atoi (argv[1]) : 4); return 0; } #else int ACE_TMAIN (int, ACE_TCHAR *[]) { ACE_ERROR_RETURN ((LM_ERROR, "your platform doesn't support threads\n"), -1); } #endif /* */
20.168831
80
0.584031
azerothcore
4b8cfe567f44bb39daf95396c860e0d198a6cf04
3,609
hpp
C++
Support/Modules/GSRoot/IChannelX.hpp
graphisoft-python/TextEngine
20c2ff53877b20fdfe2cd51ce7abdab1ff676a70
[ "Apache-2.0" ]
3
2019-07-15T10:54:54.000Z
2020-01-25T08:24:51.000Z
Support/Modules/GSRoot/IChannelX.hpp
graphisoft-python/GSRoot
008fac2c6bf601ca96e7096705e25b10ba4d3e75
[ "Apache-2.0" ]
null
null
null
Support/Modules/GSRoot/IChannelX.hpp
graphisoft-python/GSRoot
008fac2c6bf601ca96e7096705e25b10ba4d3e75
[ "Apache-2.0" ]
1
2020-09-26T03:17:22.000Z
2020-09-26T03:17:22.000Z
// ***************************************************************************** // // IChannelX - facade for IBinaryChannel and IProtocolX // // Module: GSRoot // Namespace: GS // Contact person: FM // // SG compatible // // ***************************************************************************** #ifndef GS_ICHANNELX_HPP #define GS_ICHANNELX_HPP // --------------------------------- Includes ---------------------------------- #include "IBinaryChannel.hpp" #include "IProtocolX.hpp" namespace GS { // --- Predeclarations --------------------------------------------------------- // === Class IChannelX ========================================================= class GSROOT_DLL_EXPORT IChannelX { public: // User interface IChannelX (const IBinaryChannelRef& ic, const IProtocolX& protocol); IChannelX (IBinaryChannel& ic, const IProtocolX& protocol); void Read (char& c) { GetIP ().Read (GetIBC (), c); } void Read (unsigned char& c) { GetIP ().Read (GetIBC (), c); } void Read (bool& b) { GetIP ().Read (GetIBC (), b); } void Read (short& s) { GetIP ().Read (GetIBC (), s); } void Read (unsigned short& s) { GetIP ().Read (GetIBC (), s); } void Read (int& i) { GetIP ().Read (GetIBC (), i); } void Read (unsigned int& i) { GetIP ().Read (GetIBC (), i); } void Read (long& l) { GetIP ().Read (GetIBC (), l); } void Read (unsigned long& l) { GetIP ().Read (GetIBC (), l); } void Read (long long& l) { GetIP ().Read (GetIBC (), l); } void Read (unsigned long long& l) { GetIP ().Read (GetIBC (), l); } void Read (float& f) { GetIP ().Read (GetIBC (), f); } void Read (double& d) { GetIP ().Read (GetIBC (), d); } void Read (long double& d) { GetIP ().Read (GetIBC (), d); } void Read (UniString& string) { GetIP ().Read (GetIBC (), string); } void Read (Guid& guid) { GetIP ().Read (GetIBC (), guid); } char ReadChar () { char ch; Read (ch); return ch; } unsigned char ReadUChar () { unsigned char ch; Read (ch); return ch; } bool ReadBool () { bool b; Read (b); return b; } short ReadShort () { short s; Read (s); return s; } unsigned short ReadUShort () { unsigned short s; Read (s); return s; } int ReadInt () { int i; Read (i); return i; } unsigned int ReadUInt () { unsigned int i; Read (i); return i; } Int64 ReadInt64 () { Int64 i; Read (i); return i; } UInt64 ReadUInt64 () { UInt64 i; Read (i); return i; } float ReadFloat () { float f; Read (f); return f; } double ReadDouble () { double d; Read (d); return d; } long double ReadLongDouble () { long double d; Read (d); return d; } virtual ~IChannelX (); virtual UInt64 Skip (UInt64 nOfCharToSkip); virtual USize ReadBin (char* destination, USize nOfCharToRead); virtual UInt64 GetAvailable () const; virtual void Close (); virtual void SetInputProtocol (const IProtocolX& ip); virtual const IProtocolX& GetInputProtocol (); virtual void SetIBinaryChannel (const IBinaryChannelRef& ic); virtual void SetIBinaryChannel (IBinaryChannel& ic); virtual IBinaryChannel& GetIBinaryChannel (); protected: const IProtocolX* iprotocol; IBinaryChannel* ibinaryChannel; IBinaryChannelRef ibinaryChannelRef; IBinaryChannel& GetIBC () { return *ibinaryChannel; } IBinaryChannel& GetIBC () const { return *ibinaryChannel; } const IProtocolX& GetIP () { return *iprotocol; } }; // ___ Class IChannelX _________________________________________________________ } // namespace GS #endif
37.59375
80
0.564976
graphisoft-python
4b91f517f4ea60bcd0000af4532094ca6a4d46e1
128,536
cc
C++
protocal/routing/routing.pb.cc
racestart/g2r
d115ebaab13829d716750eab2ebdcc51d79ff32e
[ "Apache-2.0" ]
1
2020-03-05T12:49:21.000Z
2020-03-05T12:49:21.000Z
protocal/routing/routing.pb.cc
gA4ss/g2r
a6e2ee5758ab59fd95704e3c3090dd234fbfb2c9
[ "Apache-2.0" ]
null
null
null
protocal/routing/routing.pb.cc
gA4ss/g2r
a6e2ee5758ab59fd95704e3c3090dd234fbfb2c9
[ "Apache-2.0" ]
1
2020-03-25T15:06:39.000Z
2020-03-25T15:06:39.000Z
// Generated by the protocol buffer compiler. DO NOT EDIT! // source: routing/routing.proto #define INTERNAL_SUPPRESS_PROTOBUF_FIELD_DEPRECATION #include "routing/routing.pb.h" #include <algorithm> #include <google/protobuf/stubs/common.h> #include <google/protobuf/stubs/port.h> #include <google/protobuf/stubs/once.h> #include <google/protobuf/io/coded_stream.h> #include <google/protobuf/wire_format_lite_inl.h> #include <google/protobuf/descriptor.h> #include <google/protobuf/generated_message_reflection.h> #include <google/protobuf/reflection_ops.h> #include <google/protobuf/wire_format.h> // @@protoc_insertion_point(includes) namespace apollo { namespace routing { namespace { const ::google::protobuf::Descriptor* LaneWaypoint_descriptor_ = NULL; const ::google::protobuf::internal::GeneratedMessageReflection* LaneWaypoint_reflection_ = NULL; const ::google::protobuf::Descriptor* LaneSegment_descriptor_ = NULL; const ::google::protobuf::internal::GeneratedMessageReflection* LaneSegment_reflection_ = NULL; const ::google::protobuf::Descriptor* RoutingRequest_descriptor_ = NULL; const ::google::protobuf::internal::GeneratedMessageReflection* RoutingRequest_reflection_ = NULL; const ::google::protobuf::Descriptor* Measurement_descriptor_ = NULL; const ::google::protobuf::internal::GeneratedMessageReflection* Measurement_reflection_ = NULL; const ::google::protobuf::Descriptor* Passage_descriptor_ = NULL; const ::google::protobuf::internal::GeneratedMessageReflection* Passage_reflection_ = NULL; const ::google::protobuf::Descriptor* RoadSegment_descriptor_ = NULL; const ::google::protobuf::internal::GeneratedMessageReflection* RoadSegment_reflection_ = NULL; const ::google::protobuf::Descriptor* RoutingResponse_descriptor_ = NULL; const ::google::protobuf::internal::GeneratedMessageReflection* RoutingResponse_reflection_ = NULL; const ::google::protobuf::EnumDescriptor* ChangeLaneType_descriptor_ = NULL; } // namespace void protobuf_AssignDesc_routing_2frouting_2eproto() GOOGLE_ATTRIBUTE_COLD; void protobuf_AssignDesc_routing_2frouting_2eproto() { protobuf_AddDesc_routing_2frouting_2eproto(); const ::google::protobuf::FileDescriptor* file = ::google::protobuf::DescriptorPool::generated_pool()->FindFileByName( "routing/routing.proto"); GOOGLE_CHECK(file != NULL); LaneWaypoint_descriptor_ = file->message_type(0); static const int LaneWaypoint_offsets_[3] = { GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(LaneWaypoint, id_), GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(LaneWaypoint, s_), GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(LaneWaypoint, pose_), }; LaneWaypoint_reflection_ = ::google::protobuf::internal::GeneratedMessageReflection::NewGeneratedMessageReflection( LaneWaypoint_descriptor_, LaneWaypoint::default_instance_, LaneWaypoint_offsets_, GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(LaneWaypoint, _has_bits_[0]), -1, -1, sizeof(LaneWaypoint), GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(LaneWaypoint, _internal_metadata_), -1); LaneSegment_descriptor_ = file->message_type(1); static const int LaneSegment_offsets_[3] = { GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(LaneSegment, id_), GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(LaneSegment, start_s_), GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(LaneSegment, end_s_), }; LaneSegment_reflection_ = ::google::protobuf::internal::GeneratedMessageReflection::NewGeneratedMessageReflection( LaneSegment_descriptor_, LaneSegment::default_instance_, LaneSegment_offsets_, GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(LaneSegment, _has_bits_[0]), -1, -1, sizeof(LaneSegment), GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(LaneSegment, _internal_metadata_), -1); RoutingRequest_descriptor_ = file->message_type(2); static const int RoutingRequest_offsets_[5] = { GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(RoutingRequest, header_), GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(RoutingRequest, waypoint_), GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(RoutingRequest, blacklisted_lane_), GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(RoutingRequest, blacklisted_road_), GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(RoutingRequest, broadcast_), }; RoutingRequest_reflection_ = ::google::protobuf::internal::GeneratedMessageReflection::NewGeneratedMessageReflection( RoutingRequest_descriptor_, RoutingRequest::default_instance_, RoutingRequest_offsets_, GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(RoutingRequest, _has_bits_[0]), -1, -1, sizeof(RoutingRequest), GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(RoutingRequest, _internal_metadata_), -1); Measurement_descriptor_ = file->message_type(3); static const int Measurement_offsets_[1] = { GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(Measurement, distance_), }; Measurement_reflection_ = ::google::protobuf::internal::GeneratedMessageReflection::NewGeneratedMessageReflection( Measurement_descriptor_, Measurement::default_instance_, Measurement_offsets_, GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(Measurement, _has_bits_[0]), -1, -1, sizeof(Measurement), GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(Measurement, _internal_metadata_), -1); Passage_descriptor_ = file->message_type(4); static const int Passage_offsets_[3] = { GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(Passage, segment_), GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(Passage, can_exit_), GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(Passage, change_lane_type_), }; Passage_reflection_ = ::google::protobuf::internal::GeneratedMessageReflection::NewGeneratedMessageReflection( Passage_descriptor_, Passage::default_instance_, Passage_offsets_, GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(Passage, _has_bits_[0]), -1, -1, sizeof(Passage), GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(Passage, _internal_metadata_), -1); RoadSegment_descriptor_ = file->message_type(5); static const int RoadSegment_offsets_[2] = { GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(RoadSegment, id_), GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(RoadSegment, passage_), }; RoadSegment_reflection_ = ::google::protobuf::internal::GeneratedMessageReflection::NewGeneratedMessageReflection( RoadSegment_descriptor_, RoadSegment::default_instance_, RoadSegment_offsets_, GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(RoadSegment, _has_bits_[0]), -1, -1, sizeof(RoadSegment), GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(RoadSegment, _internal_metadata_), -1); RoutingResponse_descriptor_ = file->message_type(6); static const int RoutingResponse_offsets_[6] = { GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(RoutingResponse, header_), GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(RoutingResponse, road_), GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(RoutingResponse, measurement_), GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(RoutingResponse, routing_request_), GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(RoutingResponse, map_version_), GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(RoutingResponse, status_), }; RoutingResponse_reflection_ = ::google::protobuf::internal::GeneratedMessageReflection::NewGeneratedMessageReflection( RoutingResponse_descriptor_, RoutingResponse::default_instance_, RoutingResponse_offsets_, GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(RoutingResponse, _has_bits_[0]), -1, -1, sizeof(RoutingResponse), GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(RoutingResponse, _internal_metadata_), -1); ChangeLaneType_descriptor_ = file->enum_type(0); } namespace { GOOGLE_PROTOBUF_DECLARE_ONCE(protobuf_AssignDescriptors_once_); inline void protobuf_AssignDescriptorsOnce() { ::google::protobuf::GoogleOnceInit(&protobuf_AssignDescriptors_once_, &protobuf_AssignDesc_routing_2frouting_2eproto); } void protobuf_RegisterTypes(const ::std::string&) GOOGLE_ATTRIBUTE_COLD; void protobuf_RegisterTypes(const ::std::string&) { protobuf_AssignDescriptorsOnce(); ::google::protobuf::MessageFactory::InternalRegisterGeneratedMessage( LaneWaypoint_descriptor_, &LaneWaypoint::default_instance()); ::google::protobuf::MessageFactory::InternalRegisterGeneratedMessage( LaneSegment_descriptor_, &LaneSegment::default_instance()); ::google::protobuf::MessageFactory::InternalRegisterGeneratedMessage( RoutingRequest_descriptor_, &RoutingRequest::default_instance()); ::google::protobuf::MessageFactory::InternalRegisterGeneratedMessage( Measurement_descriptor_, &Measurement::default_instance()); ::google::protobuf::MessageFactory::InternalRegisterGeneratedMessage( Passage_descriptor_, &Passage::default_instance()); ::google::protobuf::MessageFactory::InternalRegisterGeneratedMessage( RoadSegment_descriptor_, &RoadSegment::default_instance()); ::google::protobuf::MessageFactory::InternalRegisterGeneratedMessage( RoutingResponse_descriptor_, &RoutingResponse::default_instance()); } } // namespace void protobuf_ShutdownFile_routing_2frouting_2eproto() { delete LaneWaypoint::default_instance_; delete LaneWaypoint_reflection_; delete LaneSegment::default_instance_; delete LaneSegment_reflection_; delete RoutingRequest::default_instance_; delete RoutingRequest_reflection_; delete Measurement::default_instance_; delete Measurement_reflection_; delete Passage::default_instance_; delete Passage_reflection_; delete RoadSegment::default_instance_; delete RoadSegment_reflection_; delete RoutingResponse::default_instance_; delete RoutingResponse_reflection_; } void protobuf_AddDesc_routing_2frouting_2eproto() GOOGLE_ATTRIBUTE_COLD; void protobuf_AddDesc_routing_2frouting_2eproto() { static bool already_here = false; if (already_here) return; already_here = true; GOOGLE_PROTOBUF_VERIFY_VERSION; ::apollo::common::protobuf_AddDesc_common_2fheader_2eproto(); ::apollo::common::protobuf_AddDesc_common_2fgeometry_2eproto(); ::apollo::common::protobuf_AddDesc_common_2ferror_5fcode_2eproto(); ::google::protobuf::DescriptorPool::InternalAddGeneratedFile( "\n\025routing/routing.proto\022\016apollo.routing\032" "\023common/header.proto\032\025common/geometry.pr" "oto\032\027common/error_code.proto\"L\n\014LaneWayp" "oint\022\n\n\002id\030\001 \001(\t\022\t\n\001s\030\002 \001(\001\022%\n\004pose\030\003 \001(" "\0132\027.apollo.common.PointENU\"9\n\013LaneSegmen" "t\022\n\n\002id\030\001 \001(\t\022\017\n\007start_s\030\002 \001(\001\022\r\n\005end_s\030" "\003 \001(\001\"\321\001\n\016RoutingRequest\022%\n\006header\030\001 \001(\013" "2\025.apollo.common.Header\022.\n\010waypoint\030\002 \003(" "\0132\034.apollo.routing.LaneWaypoint\0225\n\020black" "listed_lane\030\003 \003(\0132\033.apollo.routing.LaneS" "egment\022\030\n\020blacklisted_road\030\004 \003(\t\022\027\n\tbroa" "dcast\030\005 \001(\010:\004true\"\037\n\013Measurement\022\020\n\010dist" "ance\030\001 \001(\001\"\214\001\n\007Passage\022,\n\007segment\030\001 \003(\0132" "\033.apollo.routing.LaneSegment\022\020\n\010can_exit" "\030\002 \001(\010\022A\n\020change_lane_type\030\003 \001(\0162\036.apoll" "o.routing.ChangeLaneType:\007FORWARD\"C\n\013Roa" "dSegment\022\n\n\002id\030\001 \001(\t\022(\n\007passage\030\002 \003(\0132\027." "apollo.routing.Passage\"\214\002\n\017RoutingRespon" "se\022%\n\006header\030\001 \001(\0132\025.apollo.common.Heade" "r\022)\n\004road\030\002 \003(\0132\033.apollo.routing.RoadSeg" "ment\0220\n\013measurement\030\003 \001(\0132\033.apollo.routi" "ng.Measurement\0227\n\017routing_request\030\004 \001(\0132" "\036.apollo.routing.RoutingRequest\022\023\n\013map_v" "ersion\030\005 \001(\014\022\'\n\006status\030\006 \001(\0132\027.apollo.co" "mmon.StatusPb*2\n\016ChangeLaneType\022\013\n\007FORWA" "RD\020\000\022\010\n\004LEFT\020\001\022\t\n\005RIGHT\020\002", 1025); ::google::protobuf::MessageFactory::InternalRegisterGeneratedFile( "routing/routing.proto", &protobuf_RegisterTypes); LaneWaypoint::default_instance_ = new LaneWaypoint(); LaneSegment::default_instance_ = new LaneSegment(); RoutingRequest::default_instance_ = new RoutingRequest(); Measurement::default_instance_ = new Measurement(); Passage::default_instance_ = new Passage(); RoadSegment::default_instance_ = new RoadSegment(); RoutingResponse::default_instance_ = new RoutingResponse(); LaneWaypoint::default_instance_->InitAsDefaultInstance(); LaneSegment::default_instance_->InitAsDefaultInstance(); RoutingRequest::default_instance_->InitAsDefaultInstance(); Measurement::default_instance_->InitAsDefaultInstance(); Passage::default_instance_->InitAsDefaultInstance(); RoadSegment::default_instance_->InitAsDefaultInstance(); RoutingResponse::default_instance_->InitAsDefaultInstance(); ::google::protobuf::internal::OnShutdown(&protobuf_ShutdownFile_routing_2frouting_2eproto); } // Force AddDescriptors() to be called at static initialization time. struct StaticDescriptorInitializer_routing_2frouting_2eproto { StaticDescriptorInitializer_routing_2frouting_2eproto() { protobuf_AddDesc_routing_2frouting_2eproto(); } } static_descriptor_initializer_routing_2frouting_2eproto_; const ::google::protobuf::EnumDescriptor* ChangeLaneType_descriptor() { protobuf_AssignDescriptorsOnce(); return ChangeLaneType_descriptor_; } bool ChangeLaneType_IsValid(int value) { switch(value) { case 0: case 1: case 2: return true; default: return false; } } // =================================================================== #if !defined(_MSC_VER) || _MSC_VER >= 1900 const int LaneWaypoint::kIdFieldNumber; const int LaneWaypoint::kSFieldNumber; const int LaneWaypoint::kPoseFieldNumber; #endif // !defined(_MSC_VER) || _MSC_VER >= 1900 LaneWaypoint::LaneWaypoint() : ::google::protobuf::Message(), _internal_metadata_(NULL) { SharedCtor(); // @@protoc_insertion_point(constructor:apollo.routing.LaneWaypoint) } void LaneWaypoint::InitAsDefaultInstance() { pose_ = const_cast< ::apollo::common::PointENU*>(&::apollo::common::PointENU::default_instance()); } LaneWaypoint::LaneWaypoint(const LaneWaypoint& from) : ::google::protobuf::Message(), _internal_metadata_(NULL) { SharedCtor(); MergeFrom(from); // @@protoc_insertion_point(copy_constructor:apollo.routing.LaneWaypoint) } void LaneWaypoint::SharedCtor() { ::google::protobuf::internal::GetEmptyString(); _cached_size_ = 0; id_.UnsafeSetDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); s_ = 0; pose_ = NULL; ::memset(_has_bits_, 0, sizeof(_has_bits_)); } LaneWaypoint::~LaneWaypoint() { // @@protoc_insertion_point(destructor:apollo.routing.LaneWaypoint) SharedDtor(); } void LaneWaypoint::SharedDtor() { id_.DestroyNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); if (this != default_instance_) { delete pose_; } } void LaneWaypoint::SetCachedSize(int size) const { GOOGLE_SAFE_CONCURRENT_WRITES_BEGIN(); _cached_size_ = size; GOOGLE_SAFE_CONCURRENT_WRITES_END(); } const ::google::protobuf::Descriptor* LaneWaypoint::descriptor() { protobuf_AssignDescriptorsOnce(); return LaneWaypoint_descriptor_; } const LaneWaypoint& LaneWaypoint::default_instance() { if (default_instance_ == NULL) protobuf_AddDesc_routing_2frouting_2eproto(); return *default_instance_; } LaneWaypoint* LaneWaypoint::default_instance_ = NULL; LaneWaypoint* LaneWaypoint::New(::google::protobuf::Arena* arena) const { LaneWaypoint* n = new LaneWaypoint; if (arena != NULL) { arena->Own(n); } return n; } void LaneWaypoint::Clear() { // @@protoc_insertion_point(message_clear_start:apollo.routing.LaneWaypoint) if (_has_bits_[0 / 32] & 7u) { if (has_id()) { id_.ClearToEmptyNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); } s_ = 0; if (has_pose()) { if (pose_ != NULL) pose_->::apollo::common::PointENU::Clear(); } } ::memset(_has_bits_, 0, sizeof(_has_bits_)); if (_internal_metadata_.have_unknown_fields()) { mutable_unknown_fields()->Clear(); } } bool LaneWaypoint::MergePartialFromCodedStream( ::google::protobuf::io::CodedInputStream* input) { #define DO_(EXPRESSION) if (!GOOGLE_PREDICT_TRUE(EXPRESSION)) goto failure ::google::protobuf::uint32 tag; // @@protoc_insertion_point(parse_start:apollo.routing.LaneWaypoint) for (;;) { ::std::pair< ::google::protobuf::uint32, bool> p = input->ReadTagWithCutoff(127); tag = p.first; if (!p.second) goto handle_unusual; switch (::google::protobuf::internal::WireFormatLite::GetTagFieldNumber(tag)) { // optional string id = 1; case 1: { if (tag == 10) { DO_(::google::protobuf::internal::WireFormatLite::ReadString( input, this->mutable_id())); ::google::protobuf::internal::WireFormat::VerifyUTF8StringNamedField( this->id().data(), this->id().length(), ::google::protobuf::internal::WireFormat::PARSE, "apollo.routing.LaneWaypoint.id"); } else { goto handle_unusual; } if (input->ExpectTag(17)) goto parse_s; break; } // optional double s = 2; case 2: { if (tag == 17) { parse_s: DO_((::google::protobuf::internal::WireFormatLite::ReadPrimitive< double, ::google::protobuf::internal::WireFormatLite::TYPE_DOUBLE>( input, &s_))); set_has_s(); } else { goto handle_unusual; } if (input->ExpectTag(26)) goto parse_pose; break; } // optional .apollo.common.PointENU pose = 3; case 3: { if (tag == 26) { parse_pose: DO_(::google::protobuf::internal::WireFormatLite::ReadMessageNoVirtual( input, mutable_pose())); } else { goto handle_unusual; } if (input->ExpectAtEnd()) goto success; break; } default: { handle_unusual: if (tag == 0 || ::google::protobuf::internal::WireFormatLite::GetTagWireType(tag) == ::google::protobuf::internal::WireFormatLite::WIRETYPE_END_GROUP) { goto success; } DO_(::google::protobuf::internal::WireFormat::SkipField( input, tag, mutable_unknown_fields())); break; } } } success: // @@protoc_insertion_point(parse_success:apollo.routing.LaneWaypoint) return true; failure: // @@protoc_insertion_point(parse_failure:apollo.routing.LaneWaypoint) return false; #undef DO_ } void LaneWaypoint::SerializeWithCachedSizes( ::google::protobuf::io::CodedOutputStream* output) const { // @@protoc_insertion_point(serialize_start:apollo.routing.LaneWaypoint) // optional string id = 1; if (has_id()) { ::google::protobuf::internal::WireFormat::VerifyUTF8StringNamedField( this->id().data(), this->id().length(), ::google::protobuf::internal::WireFormat::SERIALIZE, "apollo.routing.LaneWaypoint.id"); ::google::protobuf::internal::WireFormatLite::WriteStringMaybeAliased( 1, this->id(), output); } // optional double s = 2; if (has_s()) { ::google::protobuf::internal::WireFormatLite::WriteDouble(2, this->s(), output); } // optional .apollo.common.PointENU pose = 3; if (has_pose()) { ::google::protobuf::internal::WireFormatLite::WriteMessageMaybeToArray( 3, *this->pose_, output); } if (_internal_metadata_.have_unknown_fields()) { ::google::protobuf::internal::WireFormat::SerializeUnknownFields( unknown_fields(), output); } // @@protoc_insertion_point(serialize_end:apollo.routing.LaneWaypoint) } ::google::protobuf::uint8* LaneWaypoint::InternalSerializeWithCachedSizesToArray( bool deterministic, ::google::protobuf::uint8* target) const { // @@protoc_insertion_point(serialize_to_array_start:apollo.routing.LaneWaypoint) // optional string id = 1; if (has_id()) { ::google::protobuf::internal::WireFormat::VerifyUTF8StringNamedField( this->id().data(), this->id().length(), ::google::protobuf::internal::WireFormat::SERIALIZE, "apollo.routing.LaneWaypoint.id"); target = ::google::protobuf::internal::WireFormatLite::WriteStringToArray( 1, this->id(), target); } // optional double s = 2; if (has_s()) { target = ::google::protobuf::internal::WireFormatLite::WriteDoubleToArray(2, this->s(), target); } // optional .apollo.common.PointENU pose = 3; if (has_pose()) { target = ::google::protobuf::internal::WireFormatLite:: InternalWriteMessageNoVirtualToArray( 3, *this->pose_, false, target); } if (_internal_metadata_.have_unknown_fields()) { target = ::google::protobuf::internal::WireFormat::SerializeUnknownFieldsToArray( unknown_fields(), target); } // @@protoc_insertion_point(serialize_to_array_end:apollo.routing.LaneWaypoint) return target; } int LaneWaypoint::ByteSize() const { // @@protoc_insertion_point(message_byte_size_start:apollo.routing.LaneWaypoint) int total_size = 0; if (_has_bits_[0 / 32] & 7u) { // optional string id = 1; if (has_id()) { total_size += 1 + ::google::protobuf::internal::WireFormatLite::StringSize( this->id()); } // optional double s = 2; if (has_s()) { total_size += 1 + 8; } // optional .apollo.common.PointENU pose = 3; if (has_pose()) { total_size += 1 + ::google::protobuf::internal::WireFormatLite::MessageSizeNoVirtual( *this->pose_); } } if (_internal_metadata_.have_unknown_fields()) { total_size += ::google::protobuf::internal::WireFormat::ComputeUnknownFieldsSize( unknown_fields()); } GOOGLE_SAFE_CONCURRENT_WRITES_BEGIN(); _cached_size_ = total_size; GOOGLE_SAFE_CONCURRENT_WRITES_END(); return total_size; } void LaneWaypoint::MergeFrom(const ::google::protobuf::Message& from) { // @@protoc_insertion_point(generalized_merge_from_start:apollo.routing.LaneWaypoint) if (GOOGLE_PREDICT_FALSE(&from == this)) { ::google::protobuf::internal::MergeFromFail(__FILE__, __LINE__); } const LaneWaypoint* source = ::google::protobuf::internal::DynamicCastToGenerated<const LaneWaypoint>( &from); if (source == NULL) { // @@protoc_insertion_point(generalized_merge_from_cast_fail:apollo.routing.LaneWaypoint) ::google::protobuf::internal::ReflectionOps::Merge(from, this); } else { // @@protoc_insertion_point(generalized_merge_from_cast_success:apollo.routing.LaneWaypoint) MergeFrom(*source); } } void LaneWaypoint::MergeFrom(const LaneWaypoint& from) { // @@protoc_insertion_point(class_specific_merge_from_start:apollo.routing.LaneWaypoint) if (GOOGLE_PREDICT_FALSE(&from == this)) { ::google::protobuf::internal::MergeFromFail(__FILE__, __LINE__); } if (from._has_bits_[0 / 32] & (0xffu << (0 % 32))) { if (from.has_id()) { set_has_id(); id_.AssignWithDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), from.id_); } if (from.has_s()) { set_s(from.s()); } if (from.has_pose()) { mutable_pose()->::apollo::common::PointENU::MergeFrom(from.pose()); } } if (from._internal_metadata_.have_unknown_fields()) { mutable_unknown_fields()->MergeFrom(from.unknown_fields()); } } void LaneWaypoint::CopyFrom(const ::google::protobuf::Message& from) { // @@protoc_insertion_point(generalized_copy_from_start:apollo.routing.LaneWaypoint) if (&from == this) return; Clear(); MergeFrom(from); } void LaneWaypoint::CopyFrom(const LaneWaypoint& from) { // @@protoc_insertion_point(class_specific_copy_from_start:apollo.routing.LaneWaypoint) if (&from == this) return; Clear(); MergeFrom(from); } bool LaneWaypoint::IsInitialized() const { return true; } void LaneWaypoint::Swap(LaneWaypoint* other) { if (other == this) return; InternalSwap(other); } void LaneWaypoint::InternalSwap(LaneWaypoint* other) { id_.Swap(&other->id_); std::swap(s_, other->s_); std::swap(pose_, other->pose_); std::swap(_has_bits_[0], other->_has_bits_[0]); _internal_metadata_.Swap(&other->_internal_metadata_); std::swap(_cached_size_, other->_cached_size_); } ::google::protobuf::Metadata LaneWaypoint::GetMetadata() const { protobuf_AssignDescriptorsOnce(); ::google::protobuf::Metadata metadata; metadata.descriptor = LaneWaypoint_descriptor_; metadata.reflection = LaneWaypoint_reflection_; return metadata; } #if PROTOBUF_INLINE_NOT_IN_HEADERS // LaneWaypoint // optional string id = 1; bool LaneWaypoint::has_id() const { return (_has_bits_[0] & 0x00000001u) != 0; } void LaneWaypoint::set_has_id() { _has_bits_[0] |= 0x00000001u; } void LaneWaypoint::clear_has_id() { _has_bits_[0] &= ~0x00000001u; } void LaneWaypoint::clear_id() { id_.ClearToEmptyNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); clear_has_id(); } const ::std::string& LaneWaypoint::id() const { // @@protoc_insertion_point(field_get:apollo.routing.LaneWaypoint.id) return id_.GetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); } void LaneWaypoint::set_id(const ::std::string& value) { set_has_id(); id_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), value); // @@protoc_insertion_point(field_set:apollo.routing.LaneWaypoint.id) } void LaneWaypoint::set_id(const char* value) { set_has_id(); id_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), ::std::string(value)); // @@protoc_insertion_point(field_set_char:apollo.routing.LaneWaypoint.id) } void LaneWaypoint::set_id(const char* value, size_t size) { set_has_id(); id_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), ::std::string(reinterpret_cast<const char*>(value), size)); // @@protoc_insertion_point(field_set_pointer:apollo.routing.LaneWaypoint.id) } ::std::string* LaneWaypoint::mutable_id() { set_has_id(); // @@protoc_insertion_point(field_mutable:apollo.routing.LaneWaypoint.id) return id_.MutableNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); } ::std::string* LaneWaypoint::release_id() { // @@protoc_insertion_point(field_release:apollo.routing.LaneWaypoint.id) clear_has_id(); return id_.ReleaseNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); } void LaneWaypoint::set_allocated_id(::std::string* id) { if (id != NULL) { set_has_id(); } else { clear_has_id(); } id_.SetAllocatedNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), id); // @@protoc_insertion_point(field_set_allocated:apollo.routing.LaneWaypoint.id) } // optional double s = 2; bool LaneWaypoint::has_s() const { return (_has_bits_[0] & 0x00000002u) != 0; } void LaneWaypoint::set_has_s() { _has_bits_[0] |= 0x00000002u; } void LaneWaypoint::clear_has_s() { _has_bits_[0] &= ~0x00000002u; } void LaneWaypoint::clear_s() { s_ = 0; clear_has_s(); } double LaneWaypoint::s() const { // @@protoc_insertion_point(field_get:apollo.routing.LaneWaypoint.s) return s_; } void LaneWaypoint::set_s(double value) { set_has_s(); s_ = value; // @@protoc_insertion_point(field_set:apollo.routing.LaneWaypoint.s) } // optional .apollo.common.PointENU pose = 3; bool LaneWaypoint::has_pose() const { return (_has_bits_[0] & 0x00000004u) != 0; } void LaneWaypoint::set_has_pose() { _has_bits_[0] |= 0x00000004u; } void LaneWaypoint::clear_has_pose() { _has_bits_[0] &= ~0x00000004u; } void LaneWaypoint::clear_pose() { if (pose_ != NULL) pose_->::apollo::common::PointENU::Clear(); clear_has_pose(); } const ::apollo::common::PointENU& LaneWaypoint::pose() const { // @@protoc_insertion_point(field_get:apollo.routing.LaneWaypoint.pose) return pose_ != NULL ? *pose_ : *default_instance_->pose_; } ::apollo::common::PointENU* LaneWaypoint::mutable_pose() { set_has_pose(); if (pose_ == NULL) { pose_ = new ::apollo::common::PointENU; } // @@protoc_insertion_point(field_mutable:apollo.routing.LaneWaypoint.pose) return pose_; } ::apollo::common::PointENU* LaneWaypoint::release_pose() { // @@protoc_insertion_point(field_release:apollo.routing.LaneWaypoint.pose) clear_has_pose(); ::apollo::common::PointENU* temp = pose_; pose_ = NULL; return temp; } void LaneWaypoint::set_allocated_pose(::apollo::common::PointENU* pose) { delete pose_; pose_ = pose; if (pose) { set_has_pose(); } else { clear_has_pose(); } // @@protoc_insertion_point(field_set_allocated:apollo.routing.LaneWaypoint.pose) } #endif // PROTOBUF_INLINE_NOT_IN_HEADERS // =================================================================== #if !defined(_MSC_VER) || _MSC_VER >= 1900 const int LaneSegment::kIdFieldNumber; const int LaneSegment::kStartSFieldNumber; const int LaneSegment::kEndSFieldNumber; #endif // !defined(_MSC_VER) || _MSC_VER >= 1900 LaneSegment::LaneSegment() : ::google::protobuf::Message(), _internal_metadata_(NULL) { SharedCtor(); // @@protoc_insertion_point(constructor:apollo.routing.LaneSegment) } void LaneSegment::InitAsDefaultInstance() { } LaneSegment::LaneSegment(const LaneSegment& from) : ::google::protobuf::Message(), _internal_metadata_(NULL) { SharedCtor(); MergeFrom(from); // @@protoc_insertion_point(copy_constructor:apollo.routing.LaneSegment) } void LaneSegment::SharedCtor() { ::google::protobuf::internal::GetEmptyString(); _cached_size_ = 0; id_.UnsafeSetDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); start_s_ = 0; end_s_ = 0; ::memset(_has_bits_, 0, sizeof(_has_bits_)); } LaneSegment::~LaneSegment() { // @@protoc_insertion_point(destructor:apollo.routing.LaneSegment) SharedDtor(); } void LaneSegment::SharedDtor() { id_.DestroyNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); if (this != default_instance_) { } } void LaneSegment::SetCachedSize(int size) const { GOOGLE_SAFE_CONCURRENT_WRITES_BEGIN(); _cached_size_ = size; GOOGLE_SAFE_CONCURRENT_WRITES_END(); } const ::google::protobuf::Descriptor* LaneSegment::descriptor() { protobuf_AssignDescriptorsOnce(); return LaneSegment_descriptor_; } const LaneSegment& LaneSegment::default_instance() { if (default_instance_ == NULL) protobuf_AddDesc_routing_2frouting_2eproto(); return *default_instance_; } LaneSegment* LaneSegment::default_instance_ = NULL; LaneSegment* LaneSegment::New(::google::protobuf::Arena* arena) const { LaneSegment* n = new LaneSegment; if (arena != NULL) { arena->Own(n); } return n; } void LaneSegment::Clear() { // @@protoc_insertion_point(message_clear_start:apollo.routing.LaneSegment) #if defined(__clang__) #define ZR_HELPER_(f) \ _Pragma("clang diagnostic push") \ _Pragma("clang diagnostic ignored \"-Winvalid-offsetof\"") \ __builtin_offsetof(LaneSegment, f) \ _Pragma("clang diagnostic pop") #else #define ZR_HELPER_(f) reinterpret_cast<char*>(\ &reinterpret_cast<LaneSegment*>(16)->f) #endif #define ZR_(first, last) do {\ ::memset(&first, 0,\ ZR_HELPER_(last) - ZR_HELPER_(first) + sizeof(last));\ } while (0) if (_has_bits_[0 / 32] & 7u) { ZR_(start_s_, end_s_); if (has_id()) { id_.ClearToEmptyNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); } } #undef ZR_HELPER_ #undef ZR_ ::memset(_has_bits_, 0, sizeof(_has_bits_)); if (_internal_metadata_.have_unknown_fields()) { mutable_unknown_fields()->Clear(); } } bool LaneSegment::MergePartialFromCodedStream( ::google::protobuf::io::CodedInputStream* input) { #define DO_(EXPRESSION) if (!GOOGLE_PREDICT_TRUE(EXPRESSION)) goto failure ::google::protobuf::uint32 tag; // @@protoc_insertion_point(parse_start:apollo.routing.LaneSegment) for (;;) { ::std::pair< ::google::protobuf::uint32, bool> p = input->ReadTagWithCutoff(127); tag = p.first; if (!p.second) goto handle_unusual; switch (::google::protobuf::internal::WireFormatLite::GetTagFieldNumber(tag)) { // optional string id = 1; case 1: { if (tag == 10) { DO_(::google::protobuf::internal::WireFormatLite::ReadString( input, this->mutable_id())); ::google::protobuf::internal::WireFormat::VerifyUTF8StringNamedField( this->id().data(), this->id().length(), ::google::protobuf::internal::WireFormat::PARSE, "apollo.routing.LaneSegment.id"); } else { goto handle_unusual; } if (input->ExpectTag(17)) goto parse_start_s; break; } // optional double start_s = 2; case 2: { if (tag == 17) { parse_start_s: DO_((::google::protobuf::internal::WireFormatLite::ReadPrimitive< double, ::google::protobuf::internal::WireFormatLite::TYPE_DOUBLE>( input, &start_s_))); set_has_start_s(); } else { goto handle_unusual; } if (input->ExpectTag(25)) goto parse_end_s; break; } // optional double end_s = 3; case 3: { if (tag == 25) { parse_end_s: DO_((::google::protobuf::internal::WireFormatLite::ReadPrimitive< double, ::google::protobuf::internal::WireFormatLite::TYPE_DOUBLE>( input, &end_s_))); set_has_end_s(); } else { goto handle_unusual; } if (input->ExpectAtEnd()) goto success; break; } default: { handle_unusual: if (tag == 0 || ::google::protobuf::internal::WireFormatLite::GetTagWireType(tag) == ::google::protobuf::internal::WireFormatLite::WIRETYPE_END_GROUP) { goto success; } DO_(::google::protobuf::internal::WireFormat::SkipField( input, tag, mutable_unknown_fields())); break; } } } success: // @@protoc_insertion_point(parse_success:apollo.routing.LaneSegment) return true; failure: // @@protoc_insertion_point(parse_failure:apollo.routing.LaneSegment) return false; #undef DO_ } void LaneSegment::SerializeWithCachedSizes( ::google::protobuf::io::CodedOutputStream* output) const { // @@protoc_insertion_point(serialize_start:apollo.routing.LaneSegment) // optional string id = 1; if (has_id()) { ::google::protobuf::internal::WireFormat::VerifyUTF8StringNamedField( this->id().data(), this->id().length(), ::google::protobuf::internal::WireFormat::SERIALIZE, "apollo.routing.LaneSegment.id"); ::google::protobuf::internal::WireFormatLite::WriteStringMaybeAliased( 1, this->id(), output); } // optional double start_s = 2; if (has_start_s()) { ::google::protobuf::internal::WireFormatLite::WriteDouble(2, this->start_s(), output); } // optional double end_s = 3; if (has_end_s()) { ::google::protobuf::internal::WireFormatLite::WriteDouble(3, this->end_s(), output); } if (_internal_metadata_.have_unknown_fields()) { ::google::protobuf::internal::WireFormat::SerializeUnknownFields( unknown_fields(), output); } // @@protoc_insertion_point(serialize_end:apollo.routing.LaneSegment) } ::google::protobuf::uint8* LaneSegment::InternalSerializeWithCachedSizesToArray( bool deterministic, ::google::protobuf::uint8* target) const { // @@protoc_insertion_point(serialize_to_array_start:apollo.routing.LaneSegment) // optional string id = 1; if (has_id()) { ::google::protobuf::internal::WireFormat::VerifyUTF8StringNamedField( this->id().data(), this->id().length(), ::google::protobuf::internal::WireFormat::SERIALIZE, "apollo.routing.LaneSegment.id"); target = ::google::protobuf::internal::WireFormatLite::WriteStringToArray( 1, this->id(), target); } // optional double start_s = 2; if (has_start_s()) { target = ::google::protobuf::internal::WireFormatLite::WriteDoubleToArray(2, this->start_s(), target); } // optional double end_s = 3; if (has_end_s()) { target = ::google::protobuf::internal::WireFormatLite::WriteDoubleToArray(3, this->end_s(), target); } if (_internal_metadata_.have_unknown_fields()) { target = ::google::protobuf::internal::WireFormat::SerializeUnknownFieldsToArray( unknown_fields(), target); } // @@protoc_insertion_point(serialize_to_array_end:apollo.routing.LaneSegment) return target; } int LaneSegment::ByteSize() const { // @@protoc_insertion_point(message_byte_size_start:apollo.routing.LaneSegment) int total_size = 0; if (_has_bits_[0 / 32] & 7u) { // optional string id = 1; if (has_id()) { total_size += 1 + ::google::protobuf::internal::WireFormatLite::StringSize( this->id()); } // optional double start_s = 2; if (has_start_s()) { total_size += 1 + 8; } // optional double end_s = 3; if (has_end_s()) { total_size += 1 + 8; } } if (_internal_metadata_.have_unknown_fields()) { total_size += ::google::protobuf::internal::WireFormat::ComputeUnknownFieldsSize( unknown_fields()); } GOOGLE_SAFE_CONCURRENT_WRITES_BEGIN(); _cached_size_ = total_size; GOOGLE_SAFE_CONCURRENT_WRITES_END(); return total_size; } void LaneSegment::MergeFrom(const ::google::protobuf::Message& from) { // @@protoc_insertion_point(generalized_merge_from_start:apollo.routing.LaneSegment) if (GOOGLE_PREDICT_FALSE(&from == this)) { ::google::protobuf::internal::MergeFromFail(__FILE__, __LINE__); } const LaneSegment* source = ::google::protobuf::internal::DynamicCastToGenerated<const LaneSegment>( &from); if (source == NULL) { // @@protoc_insertion_point(generalized_merge_from_cast_fail:apollo.routing.LaneSegment) ::google::protobuf::internal::ReflectionOps::Merge(from, this); } else { // @@protoc_insertion_point(generalized_merge_from_cast_success:apollo.routing.LaneSegment) MergeFrom(*source); } } void LaneSegment::MergeFrom(const LaneSegment& from) { // @@protoc_insertion_point(class_specific_merge_from_start:apollo.routing.LaneSegment) if (GOOGLE_PREDICT_FALSE(&from == this)) { ::google::protobuf::internal::MergeFromFail(__FILE__, __LINE__); } if (from._has_bits_[0 / 32] & (0xffu << (0 % 32))) { if (from.has_id()) { set_has_id(); id_.AssignWithDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), from.id_); } if (from.has_start_s()) { set_start_s(from.start_s()); } if (from.has_end_s()) { set_end_s(from.end_s()); } } if (from._internal_metadata_.have_unknown_fields()) { mutable_unknown_fields()->MergeFrom(from.unknown_fields()); } } void LaneSegment::CopyFrom(const ::google::protobuf::Message& from) { // @@protoc_insertion_point(generalized_copy_from_start:apollo.routing.LaneSegment) if (&from == this) return; Clear(); MergeFrom(from); } void LaneSegment::CopyFrom(const LaneSegment& from) { // @@protoc_insertion_point(class_specific_copy_from_start:apollo.routing.LaneSegment) if (&from == this) return; Clear(); MergeFrom(from); } bool LaneSegment::IsInitialized() const { return true; } void LaneSegment::Swap(LaneSegment* other) { if (other == this) return; InternalSwap(other); } void LaneSegment::InternalSwap(LaneSegment* other) { id_.Swap(&other->id_); std::swap(start_s_, other->start_s_); std::swap(end_s_, other->end_s_); std::swap(_has_bits_[0], other->_has_bits_[0]); _internal_metadata_.Swap(&other->_internal_metadata_); std::swap(_cached_size_, other->_cached_size_); } ::google::protobuf::Metadata LaneSegment::GetMetadata() const { protobuf_AssignDescriptorsOnce(); ::google::protobuf::Metadata metadata; metadata.descriptor = LaneSegment_descriptor_; metadata.reflection = LaneSegment_reflection_; return metadata; } #if PROTOBUF_INLINE_NOT_IN_HEADERS // LaneSegment // optional string id = 1; bool LaneSegment::has_id() const { return (_has_bits_[0] & 0x00000001u) != 0; } void LaneSegment::set_has_id() { _has_bits_[0] |= 0x00000001u; } void LaneSegment::clear_has_id() { _has_bits_[0] &= ~0x00000001u; } void LaneSegment::clear_id() { id_.ClearToEmptyNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); clear_has_id(); } const ::std::string& LaneSegment::id() const { // @@protoc_insertion_point(field_get:apollo.routing.LaneSegment.id) return id_.GetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); } void LaneSegment::set_id(const ::std::string& value) { set_has_id(); id_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), value); // @@protoc_insertion_point(field_set:apollo.routing.LaneSegment.id) } void LaneSegment::set_id(const char* value) { set_has_id(); id_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), ::std::string(value)); // @@protoc_insertion_point(field_set_char:apollo.routing.LaneSegment.id) } void LaneSegment::set_id(const char* value, size_t size) { set_has_id(); id_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), ::std::string(reinterpret_cast<const char*>(value), size)); // @@protoc_insertion_point(field_set_pointer:apollo.routing.LaneSegment.id) } ::std::string* LaneSegment::mutable_id() { set_has_id(); // @@protoc_insertion_point(field_mutable:apollo.routing.LaneSegment.id) return id_.MutableNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); } ::std::string* LaneSegment::release_id() { // @@protoc_insertion_point(field_release:apollo.routing.LaneSegment.id) clear_has_id(); return id_.ReleaseNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); } void LaneSegment::set_allocated_id(::std::string* id) { if (id != NULL) { set_has_id(); } else { clear_has_id(); } id_.SetAllocatedNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), id); // @@protoc_insertion_point(field_set_allocated:apollo.routing.LaneSegment.id) } // optional double start_s = 2; bool LaneSegment::has_start_s() const { return (_has_bits_[0] & 0x00000002u) != 0; } void LaneSegment::set_has_start_s() { _has_bits_[0] |= 0x00000002u; } void LaneSegment::clear_has_start_s() { _has_bits_[0] &= ~0x00000002u; } void LaneSegment::clear_start_s() { start_s_ = 0; clear_has_start_s(); } double LaneSegment::start_s() const { // @@protoc_insertion_point(field_get:apollo.routing.LaneSegment.start_s) return start_s_; } void LaneSegment::set_start_s(double value) { set_has_start_s(); start_s_ = value; // @@protoc_insertion_point(field_set:apollo.routing.LaneSegment.start_s) } // optional double end_s = 3; bool LaneSegment::has_end_s() const { return (_has_bits_[0] & 0x00000004u) != 0; } void LaneSegment::set_has_end_s() { _has_bits_[0] |= 0x00000004u; } void LaneSegment::clear_has_end_s() { _has_bits_[0] &= ~0x00000004u; } void LaneSegment::clear_end_s() { end_s_ = 0; clear_has_end_s(); } double LaneSegment::end_s() const { // @@protoc_insertion_point(field_get:apollo.routing.LaneSegment.end_s) return end_s_; } void LaneSegment::set_end_s(double value) { set_has_end_s(); end_s_ = value; // @@protoc_insertion_point(field_set:apollo.routing.LaneSegment.end_s) } #endif // PROTOBUF_INLINE_NOT_IN_HEADERS // =================================================================== #if !defined(_MSC_VER) || _MSC_VER >= 1900 const int RoutingRequest::kHeaderFieldNumber; const int RoutingRequest::kWaypointFieldNumber; const int RoutingRequest::kBlacklistedLaneFieldNumber; const int RoutingRequest::kBlacklistedRoadFieldNumber; const int RoutingRequest::kBroadcastFieldNumber; #endif // !defined(_MSC_VER) || _MSC_VER >= 1900 RoutingRequest::RoutingRequest() : ::google::protobuf::Message(), _internal_metadata_(NULL) { SharedCtor(); // @@protoc_insertion_point(constructor:apollo.routing.RoutingRequest) } void RoutingRequest::InitAsDefaultInstance() { header_ = const_cast< ::apollo::common::Header*>(&::apollo::common::Header::default_instance()); } RoutingRequest::RoutingRequest(const RoutingRequest& from) : ::google::protobuf::Message(), _internal_metadata_(NULL) { SharedCtor(); MergeFrom(from); // @@protoc_insertion_point(copy_constructor:apollo.routing.RoutingRequest) } void RoutingRequest::SharedCtor() { ::google::protobuf::internal::GetEmptyString(); _cached_size_ = 0; header_ = NULL; broadcast_ = true; ::memset(_has_bits_, 0, sizeof(_has_bits_)); } RoutingRequest::~RoutingRequest() { // @@protoc_insertion_point(destructor:apollo.routing.RoutingRequest) SharedDtor(); } void RoutingRequest::SharedDtor() { if (this != default_instance_) { delete header_; } } void RoutingRequest::SetCachedSize(int size) const { GOOGLE_SAFE_CONCURRENT_WRITES_BEGIN(); _cached_size_ = size; GOOGLE_SAFE_CONCURRENT_WRITES_END(); } const ::google::protobuf::Descriptor* RoutingRequest::descriptor() { protobuf_AssignDescriptorsOnce(); return RoutingRequest_descriptor_; } const RoutingRequest& RoutingRequest::default_instance() { if (default_instance_ == NULL) protobuf_AddDesc_routing_2frouting_2eproto(); return *default_instance_; } RoutingRequest* RoutingRequest::default_instance_ = NULL; RoutingRequest* RoutingRequest::New(::google::protobuf::Arena* arena) const { RoutingRequest* n = new RoutingRequest; if (arena != NULL) { arena->Own(n); } return n; } void RoutingRequest::Clear() { // @@protoc_insertion_point(message_clear_start:apollo.routing.RoutingRequest) if (_has_bits_[0 / 32] & 17u) { if (has_header()) { if (header_ != NULL) header_->::apollo::common::Header::Clear(); } broadcast_ = true; } waypoint_.Clear(); blacklisted_lane_.Clear(); blacklisted_road_.Clear(); ::memset(_has_bits_, 0, sizeof(_has_bits_)); if (_internal_metadata_.have_unknown_fields()) { mutable_unknown_fields()->Clear(); } } bool RoutingRequest::MergePartialFromCodedStream( ::google::protobuf::io::CodedInputStream* input) { #define DO_(EXPRESSION) if (!GOOGLE_PREDICT_TRUE(EXPRESSION)) goto failure ::google::protobuf::uint32 tag; // @@protoc_insertion_point(parse_start:apollo.routing.RoutingRequest) for (;;) { ::std::pair< ::google::protobuf::uint32, bool> p = input->ReadTagWithCutoff(127); tag = p.first; if (!p.second) goto handle_unusual; switch (::google::protobuf::internal::WireFormatLite::GetTagFieldNumber(tag)) { // optional .apollo.common.Header header = 1; case 1: { if (tag == 10) { DO_(::google::protobuf::internal::WireFormatLite::ReadMessageNoVirtual( input, mutable_header())); } else { goto handle_unusual; } if (input->ExpectTag(18)) goto parse_waypoint; break; } // repeated .apollo.routing.LaneWaypoint waypoint = 2; case 2: { if (tag == 18) { parse_waypoint: DO_(input->IncrementRecursionDepth()); parse_loop_waypoint: DO_(::google::protobuf::internal::WireFormatLite::ReadMessageNoVirtualNoRecursionDepth( input, add_waypoint())); } else { goto handle_unusual; } if (input->ExpectTag(18)) goto parse_loop_waypoint; if (input->ExpectTag(26)) goto parse_loop_blacklisted_lane; input->UnsafeDecrementRecursionDepth(); break; } // repeated .apollo.routing.LaneSegment blacklisted_lane = 3; case 3: { if (tag == 26) { DO_(input->IncrementRecursionDepth()); parse_loop_blacklisted_lane: DO_(::google::protobuf::internal::WireFormatLite::ReadMessageNoVirtualNoRecursionDepth( input, add_blacklisted_lane())); } else { goto handle_unusual; } if (input->ExpectTag(26)) goto parse_loop_blacklisted_lane; input->UnsafeDecrementRecursionDepth(); if (input->ExpectTag(34)) goto parse_blacklisted_road; break; } // repeated string blacklisted_road = 4; case 4: { if (tag == 34) { parse_blacklisted_road: DO_(::google::protobuf::internal::WireFormatLite::ReadString( input, this->add_blacklisted_road())); ::google::protobuf::internal::WireFormat::VerifyUTF8StringNamedField( this->blacklisted_road(this->blacklisted_road_size() - 1).data(), this->blacklisted_road(this->blacklisted_road_size() - 1).length(), ::google::protobuf::internal::WireFormat::PARSE, "apollo.routing.RoutingRequest.blacklisted_road"); } else { goto handle_unusual; } if (input->ExpectTag(34)) goto parse_blacklisted_road; if (input->ExpectTag(40)) goto parse_broadcast; break; } // optional bool broadcast = 5 [default = true]; case 5: { if (tag == 40) { parse_broadcast: DO_((::google::protobuf::internal::WireFormatLite::ReadPrimitive< bool, ::google::protobuf::internal::WireFormatLite::TYPE_BOOL>( input, &broadcast_))); set_has_broadcast(); } else { goto handle_unusual; } if (input->ExpectAtEnd()) goto success; break; } default: { handle_unusual: if (tag == 0 || ::google::protobuf::internal::WireFormatLite::GetTagWireType(tag) == ::google::protobuf::internal::WireFormatLite::WIRETYPE_END_GROUP) { goto success; } DO_(::google::protobuf::internal::WireFormat::SkipField( input, tag, mutable_unknown_fields())); break; } } } success: // @@protoc_insertion_point(parse_success:apollo.routing.RoutingRequest) return true; failure: // @@protoc_insertion_point(parse_failure:apollo.routing.RoutingRequest) return false; #undef DO_ } void RoutingRequest::SerializeWithCachedSizes( ::google::protobuf::io::CodedOutputStream* output) const { // @@protoc_insertion_point(serialize_start:apollo.routing.RoutingRequest) // optional .apollo.common.Header header = 1; if (has_header()) { ::google::protobuf::internal::WireFormatLite::WriteMessageMaybeToArray( 1, *this->header_, output); } // repeated .apollo.routing.LaneWaypoint waypoint = 2; for (unsigned int i = 0, n = this->waypoint_size(); i < n; i++) { ::google::protobuf::internal::WireFormatLite::WriteMessageMaybeToArray( 2, this->waypoint(i), output); } // repeated .apollo.routing.LaneSegment blacklisted_lane = 3; for (unsigned int i = 0, n = this->blacklisted_lane_size(); i < n; i++) { ::google::protobuf::internal::WireFormatLite::WriteMessageMaybeToArray( 3, this->blacklisted_lane(i), output); } // repeated string blacklisted_road = 4; for (int i = 0; i < this->blacklisted_road_size(); i++) { ::google::protobuf::internal::WireFormat::VerifyUTF8StringNamedField( this->blacklisted_road(i).data(), this->blacklisted_road(i).length(), ::google::protobuf::internal::WireFormat::SERIALIZE, "apollo.routing.RoutingRequest.blacklisted_road"); ::google::protobuf::internal::WireFormatLite::WriteString( 4, this->blacklisted_road(i), output); } // optional bool broadcast = 5 [default = true]; if (has_broadcast()) { ::google::protobuf::internal::WireFormatLite::WriteBool(5, this->broadcast(), output); } if (_internal_metadata_.have_unknown_fields()) { ::google::protobuf::internal::WireFormat::SerializeUnknownFields( unknown_fields(), output); } // @@protoc_insertion_point(serialize_end:apollo.routing.RoutingRequest) } ::google::protobuf::uint8* RoutingRequest::InternalSerializeWithCachedSizesToArray( bool deterministic, ::google::protobuf::uint8* target) const { // @@protoc_insertion_point(serialize_to_array_start:apollo.routing.RoutingRequest) // optional .apollo.common.Header header = 1; if (has_header()) { target = ::google::protobuf::internal::WireFormatLite:: InternalWriteMessageNoVirtualToArray( 1, *this->header_, false, target); } // repeated .apollo.routing.LaneWaypoint waypoint = 2; for (unsigned int i = 0, n = this->waypoint_size(); i < n; i++) { target = ::google::protobuf::internal::WireFormatLite:: InternalWriteMessageNoVirtualToArray( 2, this->waypoint(i), false, target); } // repeated .apollo.routing.LaneSegment blacklisted_lane = 3; for (unsigned int i = 0, n = this->blacklisted_lane_size(); i < n; i++) { target = ::google::protobuf::internal::WireFormatLite:: InternalWriteMessageNoVirtualToArray( 3, this->blacklisted_lane(i), false, target); } // repeated string blacklisted_road = 4; for (int i = 0; i < this->blacklisted_road_size(); i++) { ::google::protobuf::internal::WireFormat::VerifyUTF8StringNamedField( this->blacklisted_road(i).data(), this->blacklisted_road(i).length(), ::google::protobuf::internal::WireFormat::SERIALIZE, "apollo.routing.RoutingRequest.blacklisted_road"); target = ::google::protobuf::internal::WireFormatLite:: WriteStringToArray(4, this->blacklisted_road(i), target); } // optional bool broadcast = 5 [default = true]; if (has_broadcast()) { target = ::google::protobuf::internal::WireFormatLite::WriteBoolToArray(5, this->broadcast(), target); } if (_internal_metadata_.have_unknown_fields()) { target = ::google::protobuf::internal::WireFormat::SerializeUnknownFieldsToArray( unknown_fields(), target); } // @@protoc_insertion_point(serialize_to_array_end:apollo.routing.RoutingRequest) return target; } int RoutingRequest::ByteSize() const { // @@protoc_insertion_point(message_byte_size_start:apollo.routing.RoutingRequest) int total_size = 0; if (_has_bits_[0 / 32] & 17u) { // optional .apollo.common.Header header = 1; if (has_header()) { total_size += 1 + ::google::protobuf::internal::WireFormatLite::MessageSizeNoVirtual( *this->header_); } // optional bool broadcast = 5 [default = true]; if (has_broadcast()) { total_size += 1 + 1; } } // repeated .apollo.routing.LaneWaypoint waypoint = 2; total_size += 1 * this->waypoint_size(); for (int i = 0; i < this->waypoint_size(); i++) { total_size += ::google::protobuf::internal::WireFormatLite::MessageSizeNoVirtual( this->waypoint(i)); } // repeated .apollo.routing.LaneSegment blacklisted_lane = 3; total_size += 1 * this->blacklisted_lane_size(); for (int i = 0; i < this->blacklisted_lane_size(); i++) { total_size += ::google::protobuf::internal::WireFormatLite::MessageSizeNoVirtual( this->blacklisted_lane(i)); } // repeated string blacklisted_road = 4; total_size += 1 * this->blacklisted_road_size(); for (int i = 0; i < this->blacklisted_road_size(); i++) { total_size += ::google::protobuf::internal::WireFormatLite::StringSize( this->blacklisted_road(i)); } if (_internal_metadata_.have_unknown_fields()) { total_size += ::google::protobuf::internal::WireFormat::ComputeUnknownFieldsSize( unknown_fields()); } GOOGLE_SAFE_CONCURRENT_WRITES_BEGIN(); _cached_size_ = total_size; GOOGLE_SAFE_CONCURRENT_WRITES_END(); return total_size; } void RoutingRequest::MergeFrom(const ::google::protobuf::Message& from) { // @@protoc_insertion_point(generalized_merge_from_start:apollo.routing.RoutingRequest) if (GOOGLE_PREDICT_FALSE(&from == this)) { ::google::protobuf::internal::MergeFromFail(__FILE__, __LINE__); } const RoutingRequest* source = ::google::protobuf::internal::DynamicCastToGenerated<const RoutingRequest>( &from); if (source == NULL) { // @@protoc_insertion_point(generalized_merge_from_cast_fail:apollo.routing.RoutingRequest) ::google::protobuf::internal::ReflectionOps::Merge(from, this); } else { // @@protoc_insertion_point(generalized_merge_from_cast_success:apollo.routing.RoutingRequest) MergeFrom(*source); } } void RoutingRequest::MergeFrom(const RoutingRequest& from) { // @@protoc_insertion_point(class_specific_merge_from_start:apollo.routing.RoutingRequest) if (GOOGLE_PREDICT_FALSE(&from == this)) { ::google::protobuf::internal::MergeFromFail(__FILE__, __LINE__); } waypoint_.MergeFrom(from.waypoint_); blacklisted_lane_.MergeFrom(from.blacklisted_lane_); blacklisted_road_.MergeFrom(from.blacklisted_road_); if (from._has_bits_[0 / 32] & (0xffu << (0 % 32))) { if (from.has_header()) { mutable_header()->::apollo::common::Header::MergeFrom(from.header()); } if (from.has_broadcast()) { set_broadcast(from.broadcast()); } } if (from._internal_metadata_.have_unknown_fields()) { mutable_unknown_fields()->MergeFrom(from.unknown_fields()); } } void RoutingRequest::CopyFrom(const ::google::protobuf::Message& from) { // @@protoc_insertion_point(generalized_copy_from_start:apollo.routing.RoutingRequest) if (&from == this) return; Clear(); MergeFrom(from); } void RoutingRequest::CopyFrom(const RoutingRequest& from) { // @@protoc_insertion_point(class_specific_copy_from_start:apollo.routing.RoutingRequest) if (&from == this) return; Clear(); MergeFrom(from); } bool RoutingRequest::IsInitialized() const { return true; } void RoutingRequest::Swap(RoutingRequest* other) { if (other == this) return; InternalSwap(other); } void RoutingRequest::InternalSwap(RoutingRequest* other) { std::swap(header_, other->header_); waypoint_.UnsafeArenaSwap(&other->waypoint_); blacklisted_lane_.UnsafeArenaSwap(&other->blacklisted_lane_); blacklisted_road_.UnsafeArenaSwap(&other->blacklisted_road_); std::swap(broadcast_, other->broadcast_); std::swap(_has_bits_[0], other->_has_bits_[0]); _internal_metadata_.Swap(&other->_internal_metadata_); std::swap(_cached_size_, other->_cached_size_); } ::google::protobuf::Metadata RoutingRequest::GetMetadata() const { protobuf_AssignDescriptorsOnce(); ::google::protobuf::Metadata metadata; metadata.descriptor = RoutingRequest_descriptor_; metadata.reflection = RoutingRequest_reflection_; return metadata; } #if PROTOBUF_INLINE_NOT_IN_HEADERS // RoutingRequest // optional .apollo.common.Header header = 1; bool RoutingRequest::has_header() const { return (_has_bits_[0] & 0x00000001u) != 0; } void RoutingRequest::set_has_header() { _has_bits_[0] |= 0x00000001u; } void RoutingRequest::clear_has_header() { _has_bits_[0] &= ~0x00000001u; } void RoutingRequest::clear_header() { if (header_ != NULL) header_->::apollo::common::Header::Clear(); clear_has_header(); } const ::apollo::common::Header& RoutingRequest::header() const { // @@protoc_insertion_point(field_get:apollo.routing.RoutingRequest.header) return header_ != NULL ? *header_ : *default_instance_->header_; } ::apollo::common::Header* RoutingRequest::mutable_header() { set_has_header(); if (header_ == NULL) { header_ = new ::apollo::common::Header; } // @@protoc_insertion_point(field_mutable:apollo.routing.RoutingRequest.header) return header_; } ::apollo::common::Header* RoutingRequest::release_header() { // @@protoc_insertion_point(field_release:apollo.routing.RoutingRequest.header) clear_has_header(); ::apollo::common::Header* temp = header_; header_ = NULL; return temp; } void RoutingRequest::set_allocated_header(::apollo::common::Header* header) { delete header_; header_ = header; if (header) { set_has_header(); } else { clear_has_header(); } // @@protoc_insertion_point(field_set_allocated:apollo.routing.RoutingRequest.header) } // repeated .apollo.routing.LaneWaypoint waypoint = 2; int RoutingRequest::waypoint_size() const { return waypoint_.size(); } void RoutingRequest::clear_waypoint() { waypoint_.Clear(); } const ::apollo::routing::LaneWaypoint& RoutingRequest::waypoint(int index) const { // @@protoc_insertion_point(field_get:apollo.routing.RoutingRequest.waypoint) return waypoint_.Get(index); } ::apollo::routing::LaneWaypoint* RoutingRequest::mutable_waypoint(int index) { // @@protoc_insertion_point(field_mutable:apollo.routing.RoutingRequest.waypoint) return waypoint_.Mutable(index); } ::apollo::routing::LaneWaypoint* RoutingRequest::add_waypoint() { // @@protoc_insertion_point(field_add:apollo.routing.RoutingRequest.waypoint) return waypoint_.Add(); } ::google::protobuf::RepeatedPtrField< ::apollo::routing::LaneWaypoint >* RoutingRequest::mutable_waypoint() { // @@protoc_insertion_point(field_mutable_list:apollo.routing.RoutingRequest.waypoint) return &waypoint_; } const ::google::protobuf::RepeatedPtrField< ::apollo::routing::LaneWaypoint >& RoutingRequest::waypoint() const { // @@protoc_insertion_point(field_list:apollo.routing.RoutingRequest.waypoint) return waypoint_; } // repeated .apollo.routing.LaneSegment blacklisted_lane = 3; int RoutingRequest::blacklisted_lane_size() const { return blacklisted_lane_.size(); } void RoutingRequest::clear_blacklisted_lane() { blacklisted_lane_.Clear(); } const ::apollo::routing::LaneSegment& RoutingRequest::blacklisted_lane(int index) const { // @@protoc_insertion_point(field_get:apollo.routing.RoutingRequest.blacklisted_lane) return blacklisted_lane_.Get(index); } ::apollo::routing::LaneSegment* RoutingRequest::mutable_blacklisted_lane(int index) { // @@protoc_insertion_point(field_mutable:apollo.routing.RoutingRequest.blacklisted_lane) return blacklisted_lane_.Mutable(index); } ::apollo::routing::LaneSegment* RoutingRequest::add_blacklisted_lane() { // @@protoc_insertion_point(field_add:apollo.routing.RoutingRequest.blacklisted_lane) return blacklisted_lane_.Add(); } ::google::protobuf::RepeatedPtrField< ::apollo::routing::LaneSegment >* RoutingRequest::mutable_blacklisted_lane() { // @@protoc_insertion_point(field_mutable_list:apollo.routing.RoutingRequest.blacklisted_lane) return &blacklisted_lane_; } const ::google::protobuf::RepeatedPtrField< ::apollo::routing::LaneSegment >& RoutingRequest::blacklisted_lane() const { // @@protoc_insertion_point(field_list:apollo.routing.RoutingRequest.blacklisted_lane) return blacklisted_lane_; } // repeated string blacklisted_road = 4; int RoutingRequest::blacklisted_road_size() const { return blacklisted_road_.size(); } void RoutingRequest::clear_blacklisted_road() { blacklisted_road_.Clear(); } const ::std::string& RoutingRequest::blacklisted_road(int index) const { // @@protoc_insertion_point(field_get:apollo.routing.RoutingRequest.blacklisted_road) return blacklisted_road_.Get(index); } ::std::string* RoutingRequest::mutable_blacklisted_road(int index) { // @@protoc_insertion_point(field_mutable:apollo.routing.RoutingRequest.blacklisted_road) return blacklisted_road_.Mutable(index); } void RoutingRequest::set_blacklisted_road(int index, const ::std::string& value) { // @@protoc_insertion_point(field_set:apollo.routing.RoutingRequest.blacklisted_road) blacklisted_road_.Mutable(index)->assign(value); } void RoutingRequest::set_blacklisted_road(int index, const char* value) { blacklisted_road_.Mutable(index)->assign(value); // @@protoc_insertion_point(field_set_char:apollo.routing.RoutingRequest.blacklisted_road) } void RoutingRequest::set_blacklisted_road(int index, const char* value, size_t size) { blacklisted_road_.Mutable(index)->assign( reinterpret_cast<const char*>(value), size); // @@protoc_insertion_point(field_set_pointer:apollo.routing.RoutingRequest.blacklisted_road) } ::std::string* RoutingRequest::add_blacklisted_road() { // @@protoc_insertion_point(field_add_mutable:apollo.routing.RoutingRequest.blacklisted_road) return blacklisted_road_.Add(); } void RoutingRequest::add_blacklisted_road(const ::std::string& value) { blacklisted_road_.Add()->assign(value); // @@protoc_insertion_point(field_add:apollo.routing.RoutingRequest.blacklisted_road) } void RoutingRequest::add_blacklisted_road(const char* value) { blacklisted_road_.Add()->assign(value); // @@protoc_insertion_point(field_add_char:apollo.routing.RoutingRequest.blacklisted_road) } void RoutingRequest::add_blacklisted_road(const char* value, size_t size) { blacklisted_road_.Add()->assign(reinterpret_cast<const char*>(value), size); // @@protoc_insertion_point(field_add_pointer:apollo.routing.RoutingRequest.blacklisted_road) } const ::google::protobuf::RepeatedPtrField< ::std::string>& RoutingRequest::blacklisted_road() const { // @@protoc_insertion_point(field_list:apollo.routing.RoutingRequest.blacklisted_road) return blacklisted_road_; } ::google::protobuf::RepeatedPtrField< ::std::string>* RoutingRequest::mutable_blacklisted_road() { // @@protoc_insertion_point(field_mutable_list:apollo.routing.RoutingRequest.blacklisted_road) return &blacklisted_road_; } // optional bool broadcast = 5 [default = true]; bool RoutingRequest::has_broadcast() const { return (_has_bits_[0] & 0x00000010u) != 0; } void RoutingRequest::set_has_broadcast() { _has_bits_[0] |= 0x00000010u; } void RoutingRequest::clear_has_broadcast() { _has_bits_[0] &= ~0x00000010u; } void RoutingRequest::clear_broadcast() { broadcast_ = true; clear_has_broadcast(); } bool RoutingRequest::broadcast() const { // @@protoc_insertion_point(field_get:apollo.routing.RoutingRequest.broadcast) return broadcast_; } void RoutingRequest::set_broadcast(bool value) { set_has_broadcast(); broadcast_ = value; // @@protoc_insertion_point(field_set:apollo.routing.RoutingRequest.broadcast) } #endif // PROTOBUF_INLINE_NOT_IN_HEADERS // =================================================================== #if !defined(_MSC_VER) || _MSC_VER >= 1900 const int Measurement::kDistanceFieldNumber; #endif // !defined(_MSC_VER) || _MSC_VER >= 1900 Measurement::Measurement() : ::google::protobuf::Message(), _internal_metadata_(NULL) { SharedCtor(); // @@protoc_insertion_point(constructor:apollo.routing.Measurement) } void Measurement::InitAsDefaultInstance() { } Measurement::Measurement(const Measurement& from) : ::google::protobuf::Message(), _internal_metadata_(NULL) { SharedCtor(); MergeFrom(from); // @@protoc_insertion_point(copy_constructor:apollo.routing.Measurement) } void Measurement::SharedCtor() { _cached_size_ = 0; distance_ = 0; ::memset(_has_bits_, 0, sizeof(_has_bits_)); } Measurement::~Measurement() { // @@protoc_insertion_point(destructor:apollo.routing.Measurement) SharedDtor(); } void Measurement::SharedDtor() { if (this != default_instance_) { } } void Measurement::SetCachedSize(int size) const { GOOGLE_SAFE_CONCURRENT_WRITES_BEGIN(); _cached_size_ = size; GOOGLE_SAFE_CONCURRENT_WRITES_END(); } const ::google::protobuf::Descriptor* Measurement::descriptor() { protobuf_AssignDescriptorsOnce(); return Measurement_descriptor_; } const Measurement& Measurement::default_instance() { if (default_instance_ == NULL) protobuf_AddDesc_routing_2frouting_2eproto(); return *default_instance_; } Measurement* Measurement::default_instance_ = NULL; Measurement* Measurement::New(::google::protobuf::Arena* arena) const { Measurement* n = new Measurement; if (arena != NULL) { arena->Own(n); } return n; } void Measurement::Clear() { // @@protoc_insertion_point(message_clear_start:apollo.routing.Measurement) distance_ = 0; ::memset(_has_bits_, 0, sizeof(_has_bits_)); if (_internal_metadata_.have_unknown_fields()) { mutable_unknown_fields()->Clear(); } } bool Measurement::MergePartialFromCodedStream( ::google::protobuf::io::CodedInputStream* input) { #define DO_(EXPRESSION) if (!GOOGLE_PREDICT_TRUE(EXPRESSION)) goto failure ::google::protobuf::uint32 tag; // @@protoc_insertion_point(parse_start:apollo.routing.Measurement) for (;;) { ::std::pair< ::google::protobuf::uint32, bool> p = input->ReadTagWithCutoff(127); tag = p.first; if (!p.second) goto handle_unusual; switch (::google::protobuf::internal::WireFormatLite::GetTagFieldNumber(tag)) { // optional double distance = 1; case 1: { if (tag == 9) { DO_((::google::protobuf::internal::WireFormatLite::ReadPrimitive< double, ::google::protobuf::internal::WireFormatLite::TYPE_DOUBLE>( input, &distance_))); set_has_distance(); } else { goto handle_unusual; } if (input->ExpectAtEnd()) goto success; break; } default: { handle_unusual: if (tag == 0 || ::google::protobuf::internal::WireFormatLite::GetTagWireType(tag) == ::google::protobuf::internal::WireFormatLite::WIRETYPE_END_GROUP) { goto success; } DO_(::google::protobuf::internal::WireFormat::SkipField( input, tag, mutable_unknown_fields())); break; } } } success: // @@protoc_insertion_point(parse_success:apollo.routing.Measurement) return true; failure: // @@protoc_insertion_point(parse_failure:apollo.routing.Measurement) return false; #undef DO_ } void Measurement::SerializeWithCachedSizes( ::google::protobuf::io::CodedOutputStream* output) const { // @@protoc_insertion_point(serialize_start:apollo.routing.Measurement) // optional double distance = 1; if (has_distance()) { ::google::protobuf::internal::WireFormatLite::WriteDouble(1, this->distance(), output); } if (_internal_metadata_.have_unknown_fields()) { ::google::protobuf::internal::WireFormat::SerializeUnknownFields( unknown_fields(), output); } // @@protoc_insertion_point(serialize_end:apollo.routing.Measurement) } ::google::protobuf::uint8* Measurement::InternalSerializeWithCachedSizesToArray( bool deterministic, ::google::protobuf::uint8* target) const { // @@protoc_insertion_point(serialize_to_array_start:apollo.routing.Measurement) // optional double distance = 1; if (has_distance()) { target = ::google::protobuf::internal::WireFormatLite::WriteDoubleToArray(1, this->distance(), target); } if (_internal_metadata_.have_unknown_fields()) { target = ::google::protobuf::internal::WireFormat::SerializeUnknownFieldsToArray( unknown_fields(), target); } // @@protoc_insertion_point(serialize_to_array_end:apollo.routing.Measurement) return target; } int Measurement::ByteSize() const { // @@protoc_insertion_point(message_byte_size_start:apollo.routing.Measurement) int total_size = 0; // optional double distance = 1; if (has_distance()) { total_size += 1 + 8; } if (_internal_metadata_.have_unknown_fields()) { total_size += ::google::protobuf::internal::WireFormat::ComputeUnknownFieldsSize( unknown_fields()); } GOOGLE_SAFE_CONCURRENT_WRITES_BEGIN(); _cached_size_ = total_size; GOOGLE_SAFE_CONCURRENT_WRITES_END(); return total_size; } void Measurement::MergeFrom(const ::google::protobuf::Message& from) { // @@protoc_insertion_point(generalized_merge_from_start:apollo.routing.Measurement) if (GOOGLE_PREDICT_FALSE(&from == this)) { ::google::protobuf::internal::MergeFromFail(__FILE__, __LINE__); } const Measurement* source = ::google::protobuf::internal::DynamicCastToGenerated<const Measurement>( &from); if (source == NULL) { // @@protoc_insertion_point(generalized_merge_from_cast_fail:apollo.routing.Measurement) ::google::protobuf::internal::ReflectionOps::Merge(from, this); } else { // @@protoc_insertion_point(generalized_merge_from_cast_success:apollo.routing.Measurement) MergeFrom(*source); } } void Measurement::MergeFrom(const Measurement& from) { // @@protoc_insertion_point(class_specific_merge_from_start:apollo.routing.Measurement) if (GOOGLE_PREDICT_FALSE(&from == this)) { ::google::protobuf::internal::MergeFromFail(__FILE__, __LINE__); } if (from._has_bits_[0 / 32] & (0xffu << (0 % 32))) { if (from.has_distance()) { set_distance(from.distance()); } } if (from._internal_metadata_.have_unknown_fields()) { mutable_unknown_fields()->MergeFrom(from.unknown_fields()); } } void Measurement::CopyFrom(const ::google::protobuf::Message& from) { // @@protoc_insertion_point(generalized_copy_from_start:apollo.routing.Measurement) if (&from == this) return; Clear(); MergeFrom(from); } void Measurement::CopyFrom(const Measurement& from) { // @@protoc_insertion_point(class_specific_copy_from_start:apollo.routing.Measurement) if (&from == this) return; Clear(); MergeFrom(from); } bool Measurement::IsInitialized() const { return true; } void Measurement::Swap(Measurement* other) { if (other == this) return; InternalSwap(other); } void Measurement::InternalSwap(Measurement* other) { std::swap(distance_, other->distance_); std::swap(_has_bits_[0], other->_has_bits_[0]); _internal_metadata_.Swap(&other->_internal_metadata_); std::swap(_cached_size_, other->_cached_size_); } ::google::protobuf::Metadata Measurement::GetMetadata() const { protobuf_AssignDescriptorsOnce(); ::google::protobuf::Metadata metadata; metadata.descriptor = Measurement_descriptor_; metadata.reflection = Measurement_reflection_; return metadata; } #if PROTOBUF_INLINE_NOT_IN_HEADERS // Measurement // optional double distance = 1; bool Measurement::has_distance() const { return (_has_bits_[0] & 0x00000001u) != 0; } void Measurement::set_has_distance() { _has_bits_[0] |= 0x00000001u; } void Measurement::clear_has_distance() { _has_bits_[0] &= ~0x00000001u; } void Measurement::clear_distance() { distance_ = 0; clear_has_distance(); } double Measurement::distance() const { // @@protoc_insertion_point(field_get:apollo.routing.Measurement.distance) return distance_; } void Measurement::set_distance(double value) { set_has_distance(); distance_ = value; // @@protoc_insertion_point(field_set:apollo.routing.Measurement.distance) } #endif // PROTOBUF_INLINE_NOT_IN_HEADERS // =================================================================== #if !defined(_MSC_VER) || _MSC_VER >= 1900 const int Passage::kSegmentFieldNumber; const int Passage::kCanExitFieldNumber; const int Passage::kChangeLaneTypeFieldNumber; #endif // !defined(_MSC_VER) || _MSC_VER >= 1900 Passage::Passage() : ::google::protobuf::Message(), _internal_metadata_(NULL) { SharedCtor(); // @@protoc_insertion_point(constructor:apollo.routing.Passage) } void Passage::InitAsDefaultInstance() { } Passage::Passage(const Passage& from) : ::google::protobuf::Message(), _internal_metadata_(NULL) { SharedCtor(); MergeFrom(from); // @@protoc_insertion_point(copy_constructor:apollo.routing.Passage) } void Passage::SharedCtor() { _cached_size_ = 0; can_exit_ = false; change_lane_type_ = 0; ::memset(_has_bits_, 0, sizeof(_has_bits_)); } Passage::~Passage() { // @@protoc_insertion_point(destructor:apollo.routing.Passage) SharedDtor(); } void Passage::SharedDtor() { if (this != default_instance_) { } } void Passage::SetCachedSize(int size) const { GOOGLE_SAFE_CONCURRENT_WRITES_BEGIN(); _cached_size_ = size; GOOGLE_SAFE_CONCURRENT_WRITES_END(); } const ::google::protobuf::Descriptor* Passage::descriptor() { protobuf_AssignDescriptorsOnce(); return Passage_descriptor_; } const Passage& Passage::default_instance() { if (default_instance_ == NULL) protobuf_AddDesc_routing_2frouting_2eproto(); return *default_instance_; } Passage* Passage::default_instance_ = NULL; Passage* Passage::New(::google::protobuf::Arena* arena) const { Passage* n = new Passage; if (arena != NULL) { arena->Own(n); } return n; } void Passage::Clear() { // @@protoc_insertion_point(message_clear_start:apollo.routing.Passage) #if defined(__clang__) #define ZR_HELPER_(f) \ _Pragma("clang diagnostic push") \ _Pragma("clang diagnostic ignored \"-Winvalid-offsetof\"") \ __builtin_offsetof(Passage, f) \ _Pragma("clang diagnostic pop") #else #define ZR_HELPER_(f) reinterpret_cast<char*>(\ &reinterpret_cast<Passage*>(16)->f) #endif #define ZR_(first, last) do {\ ::memset(&first, 0,\ ZR_HELPER_(last) - ZR_HELPER_(first) + sizeof(last));\ } while (0) ZR_(can_exit_, change_lane_type_); #undef ZR_HELPER_ #undef ZR_ segment_.Clear(); ::memset(_has_bits_, 0, sizeof(_has_bits_)); if (_internal_metadata_.have_unknown_fields()) { mutable_unknown_fields()->Clear(); } } bool Passage::MergePartialFromCodedStream( ::google::protobuf::io::CodedInputStream* input) { #define DO_(EXPRESSION) if (!GOOGLE_PREDICT_TRUE(EXPRESSION)) goto failure ::google::protobuf::uint32 tag; // @@protoc_insertion_point(parse_start:apollo.routing.Passage) for (;;) { ::std::pair< ::google::protobuf::uint32, bool> p = input->ReadTagWithCutoff(127); tag = p.first; if (!p.second) goto handle_unusual; switch (::google::protobuf::internal::WireFormatLite::GetTagFieldNumber(tag)) { // repeated .apollo.routing.LaneSegment segment = 1; case 1: { if (tag == 10) { DO_(input->IncrementRecursionDepth()); parse_loop_segment: DO_(::google::protobuf::internal::WireFormatLite::ReadMessageNoVirtualNoRecursionDepth( input, add_segment())); } else { goto handle_unusual; } if (input->ExpectTag(10)) goto parse_loop_segment; input->UnsafeDecrementRecursionDepth(); if (input->ExpectTag(16)) goto parse_can_exit; break; } // optional bool can_exit = 2; case 2: { if (tag == 16) { parse_can_exit: DO_((::google::protobuf::internal::WireFormatLite::ReadPrimitive< bool, ::google::protobuf::internal::WireFormatLite::TYPE_BOOL>( input, &can_exit_))); set_has_can_exit(); } else { goto handle_unusual; } if (input->ExpectTag(24)) goto parse_change_lane_type; break; } // optional .apollo.routing.ChangeLaneType change_lane_type = 3 [default = FORWARD]; case 3: { if (tag == 24) { parse_change_lane_type: int value; DO_((::google::protobuf::internal::WireFormatLite::ReadPrimitive< int, ::google::protobuf::internal::WireFormatLite::TYPE_ENUM>( input, &value))); if (::apollo::routing::ChangeLaneType_IsValid(value)) { set_change_lane_type(static_cast< ::apollo::routing::ChangeLaneType >(value)); } else { mutable_unknown_fields()->AddVarint(3, value); } } else { goto handle_unusual; } if (input->ExpectAtEnd()) goto success; break; } default: { handle_unusual: if (tag == 0 || ::google::protobuf::internal::WireFormatLite::GetTagWireType(tag) == ::google::protobuf::internal::WireFormatLite::WIRETYPE_END_GROUP) { goto success; } DO_(::google::protobuf::internal::WireFormat::SkipField( input, tag, mutable_unknown_fields())); break; } } } success: // @@protoc_insertion_point(parse_success:apollo.routing.Passage) return true; failure: // @@protoc_insertion_point(parse_failure:apollo.routing.Passage) return false; #undef DO_ } void Passage::SerializeWithCachedSizes( ::google::protobuf::io::CodedOutputStream* output) const { // @@protoc_insertion_point(serialize_start:apollo.routing.Passage) // repeated .apollo.routing.LaneSegment segment = 1; for (unsigned int i = 0, n = this->segment_size(); i < n; i++) { ::google::protobuf::internal::WireFormatLite::WriteMessageMaybeToArray( 1, this->segment(i), output); } // optional bool can_exit = 2; if (has_can_exit()) { ::google::protobuf::internal::WireFormatLite::WriteBool(2, this->can_exit(), output); } // optional .apollo.routing.ChangeLaneType change_lane_type = 3 [default = FORWARD]; if (has_change_lane_type()) { ::google::protobuf::internal::WireFormatLite::WriteEnum( 3, this->change_lane_type(), output); } if (_internal_metadata_.have_unknown_fields()) { ::google::protobuf::internal::WireFormat::SerializeUnknownFields( unknown_fields(), output); } // @@protoc_insertion_point(serialize_end:apollo.routing.Passage) } ::google::protobuf::uint8* Passage::InternalSerializeWithCachedSizesToArray( bool deterministic, ::google::protobuf::uint8* target) const { // @@protoc_insertion_point(serialize_to_array_start:apollo.routing.Passage) // repeated .apollo.routing.LaneSegment segment = 1; for (unsigned int i = 0, n = this->segment_size(); i < n; i++) { target = ::google::protobuf::internal::WireFormatLite:: InternalWriteMessageNoVirtualToArray( 1, this->segment(i), false, target); } // optional bool can_exit = 2; if (has_can_exit()) { target = ::google::protobuf::internal::WireFormatLite::WriteBoolToArray(2, this->can_exit(), target); } // optional .apollo.routing.ChangeLaneType change_lane_type = 3 [default = FORWARD]; if (has_change_lane_type()) { target = ::google::protobuf::internal::WireFormatLite::WriteEnumToArray( 3, this->change_lane_type(), target); } if (_internal_metadata_.have_unknown_fields()) { target = ::google::protobuf::internal::WireFormat::SerializeUnknownFieldsToArray( unknown_fields(), target); } // @@protoc_insertion_point(serialize_to_array_end:apollo.routing.Passage) return target; } int Passage::ByteSize() const { // @@protoc_insertion_point(message_byte_size_start:apollo.routing.Passage) int total_size = 0; if (_has_bits_[1 / 32] & 6u) { // optional bool can_exit = 2; if (has_can_exit()) { total_size += 1 + 1; } // optional .apollo.routing.ChangeLaneType change_lane_type = 3 [default = FORWARD]; if (has_change_lane_type()) { total_size += 1 + ::google::protobuf::internal::WireFormatLite::EnumSize(this->change_lane_type()); } } // repeated .apollo.routing.LaneSegment segment = 1; total_size += 1 * this->segment_size(); for (int i = 0; i < this->segment_size(); i++) { total_size += ::google::protobuf::internal::WireFormatLite::MessageSizeNoVirtual( this->segment(i)); } if (_internal_metadata_.have_unknown_fields()) { total_size += ::google::protobuf::internal::WireFormat::ComputeUnknownFieldsSize( unknown_fields()); } GOOGLE_SAFE_CONCURRENT_WRITES_BEGIN(); _cached_size_ = total_size; GOOGLE_SAFE_CONCURRENT_WRITES_END(); return total_size; } void Passage::MergeFrom(const ::google::protobuf::Message& from) { // @@protoc_insertion_point(generalized_merge_from_start:apollo.routing.Passage) if (GOOGLE_PREDICT_FALSE(&from == this)) { ::google::protobuf::internal::MergeFromFail(__FILE__, __LINE__); } const Passage* source = ::google::protobuf::internal::DynamicCastToGenerated<const Passage>( &from); if (source == NULL) { // @@protoc_insertion_point(generalized_merge_from_cast_fail:apollo.routing.Passage) ::google::protobuf::internal::ReflectionOps::Merge(from, this); } else { // @@protoc_insertion_point(generalized_merge_from_cast_success:apollo.routing.Passage) MergeFrom(*source); } } void Passage::MergeFrom(const Passage& from) { // @@protoc_insertion_point(class_specific_merge_from_start:apollo.routing.Passage) if (GOOGLE_PREDICT_FALSE(&from == this)) { ::google::protobuf::internal::MergeFromFail(__FILE__, __LINE__); } segment_.MergeFrom(from.segment_); if (from._has_bits_[1 / 32] & (0xffu << (1 % 32))) { if (from.has_can_exit()) { set_can_exit(from.can_exit()); } if (from.has_change_lane_type()) { set_change_lane_type(from.change_lane_type()); } } if (from._internal_metadata_.have_unknown_fields()) { mutable_unknown_fields()->MergeFrom(from.unknown_fields()); } } void Passage::CopyFrom(const ::google::protobuf::Message& from) { // @@protoc_insertion_point(generalized_copy_from_start:apollo.routing.Passage) if (&from == this) return; Clear(); MergeFrom(from); } void Passage::CopyFrom(const Passage& from) { // @@protoc_insertion_point(class_specific_copy_from_start:apollo.routing.Passage) if (&from == this) return; Clear(); MergeFrom(from); } bool Passage::IsInitialized() const { return true; } void Passage::Swap(Passage* other) { if (other == this) return; InternalSwap(other); } void Passage::InternalSwap(Passage* other) { segment_.UnsafeArenaSwap(&other->segment_); std::swap(can_exit_, other->can_exit_); std::swap(change_lane_type_, other->change_lane_type_); std::swap(_has_bits_[0], other->_has_bits_[0]); _internal_metadata_.Swap(&other->_internal_metadata_); std::swap(_cached_size_, other->_cached_size_); } ::google::protobuf::Metadata Passage::GetMetadata() const { protobuf_AssignDescriptorsOnce(); ::google::protobuf::Metadata metadata; metadata.descriptor = Passage_descriptor_; metadata.reflection = Passage_reflection_; return metadata; } #if PROTOBUF_INLINE_NOT_IN_HEADERS // Passage // repeated .apollo.routing.LaneSegment segment = 1; int Passage::segment_size() const { return segment_.size(); } void Passage::clear_segment() { segment_.Clear(); } const ::apollo::routing::LaneSegment& Passage::segment(int index) const { // @@protoc_insertion_point(field_get:apollo.routing.Passage.segment) return segment_.Get(index); } ::apollo::routing::LaneSegment* Passage::mutable_segment(int index) { // @@protoc_insertion_point(field_mutable:apollo.routing.Passage.segment) return segment_.Mutable(index); } ::apollo::routing::LaneSegment* Passage::add_segment() { // @@protoc_insertion_point(field_add:apollo.routing.Passage.segment) return segment_.Add(); } ::google::protobuf::RepeatedPtrField< ::apollo::routing::LaneSegment >* Passage::mutable_segment() { // @@protoc_insertion_point(field_mutable_list:apollo.routing.Passage.segment) return &segment_; } const ::google::protobuf::RepeatedPtrField< ::apollo::routing::LaneSegment >& Passage::segment() const { // @@protoc_insertion_point(field_list:apollo.routing.Passage.segment) return segment_; } // optional bool can_exit = 2; bool Passage::has_can_exit() const { return (_has_bits_[0] & 0x00000002u) != 0; } void Passage::set_has_can_exit() { _has_bits_[0] |= 0x00000002u; } void Passage::clear_has_can_exit() { _has_bits_[0] &= ~0x00000002u; } void Passage::clear_can_exit() { can_exit_ = false; clear_has_can_exit(); } bool Passage::can_exit() const { // @@protoc_insertion_point(field_get:apollo.routing.Passage.can_exit) return can_exit_; } void Passage::set_can_exit(bool value) { set_has_can_exit(); can_exit_ = value; // @@protoc_insertion_point(field_set:apollo.routing.Passage.can_exit) } // optional .apollo.routing.ChangeLaneType change_lane_type = 3 [default = FORWARD]; bool Passage::has_change_lane_type() const { return (_has_bits_[0] & 0x00000004u) != 0; } void Passage::set_has_change_lane_type() { _has_bits_[0] |= 0x00000004u; } void Passage::clear_has_change_lane_type() { _has_bits_[0] &= ~0x00000004u; } void Passage::clear_change_lane_type() { change_lane_type_ = 0; clear_has_change_lane_type(); } ::apollo::routing::ChangeLaneType Passage::change_lane_type() const { // @@protoc_insertion_point(field_get:apollo.routing.Passage.change_lane_type) return static_cast< ::apollo::routing::ChangeLaneType >(change_lane_type_); } void Passage::set_change_lane_type(::apollo::routing::ChangeLaneType value) { assert(::apollo::routing::ChangeLaneType_IsValid(value)); set_has_change_lane_type(); change_lane_type_ = value; // @@protoc_insertion_point(field_set:apollo.routing.Passage.change_lane_type) } #endif // PROTOBUF_INLINE_NOT_IN_HEADERS // =================================================================== #if !defined(_MSC_VER) || _MSC_VER >= 1900 const int RoadSegment::kIdFieldNumber; const int RoadSegment::kPassageFieldNumber; #endif // !defined(_MSC_VER) || _MSC_VER >= 1900 RoadSegment::RoadSegment() : ::google::protobuf::Message(), _internal_metadata_(NULL) { SharedCtor(); // @@protoc_insertion_point(constructor:apollo.routing.RoadSegment) } void RoadSegment::InitAsDefaultInstance() { } RoadSegment::RoadSegment(const RoadSegment& from) : ::google::protobuf::Message(), _internal_metadata_(NULL) { SharedCtor(); MergeFrom(from); // @@protoc_insertion_point(copy_constructor:apollo.routing.RoadSegment) } void RoadSegment::SharedCtor() { ::google::protobuf::internal::GetEmptyString(); _cached_size_ = 0; id_.UnsafeSetDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); ::memset(_has_bits_, 0, sizeof(_has_bits_)); } RoadSegment::~RoadSegment() { // @@protoc_insertion_point(destructor:apollo.routing.RoadSegment) SharedDtor(); } void RoadSegment::SharedDtor() { id_.DestroyNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); if (this != default_instance_) { } } void RoadSegment::SetCachedSize(int size) const { GOOGLE_SAFE_CONCURRENT_WRITES_BEGIN(); _cached_size_ = size; GOOGLE_SAFE_CONCURRENT_WRITES_END(); } const ::google::protobuf::Descriptor* RoadSegment::descriptor() { protobuf_AssignDescriptorsOnce(); return RoadSegment_descriptor_; } const RoadSegment& RoadSegment::default_instance() { if (default_instance_ == NULL) protobuf_AddDesc_routing_2frouting_2eproto(); return *default_instance_; } RoadSegment* RoadSegment::default_instance_ = NULL; RoadSegment* RoadSegment::New(::google::protobuf::Arena* arena) const { RoadSegment* n = new RoadSegment; if (arena != NULL) { arena->Own(n); } return n; } void RoadSegment::Clear() { // @@protoc_insertion_point(message_clear_start:apollo.routing.RoadSegment) if (has_id()) { id_.ClearToEmptyNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); } passage_.Clear(); ::memset(_has_bits_, 0, sizeof(_has_bits_)); if (_internal_metadata_.have_unknown_fields()) { mutable_unknown_fields()->Clear(); } } bool RoadSegment::MergePartialFromCodedStream( ::google::protobuf::io::CodedInputStream* input) { #define DO_(EXPRESSION) if (!GOOGLE_PREDICT_TRUE(EXPRESSION)) goto failure ::google::protobuf::uint32 tag; // @@protoc_insertion_point(parse_start:apollo.routing.RoadSegment) for (;;) { ::std::pair< ::google::protobuf::uint32, bool> p = input->ReadTagWithCutoff(127); tag = p.first; if (!p.second) goto handle_unusual; switch (::google::protobuf::internal::WireFormatLite::GetTagFieldNumber(tag)) { // optional string id = 1; case 1: { if (tag == 10) { DO_(::google::protobuf::internal::WireFormatLite::ReadString( input, this->mutable_id())); ::google::protobuf::internal::WireFormat::VerifyUTF8StringNamedField( this->id().data(), this->id().length(), ::google::protobuf::internal::WireFormat::PARSE, "apollo.routing.RoadSegment.id"); } else { goto handle_unusual; } if (input->ExpectTag(18)) goto parse_passage; break; } // repeated .apollo.routing.Passage passage = 2; case 2: { if (tag == 18) { parse_passage: DO_(input->IncrementRecursionDepth()); parse_loop_passage: DO_(::google::protobuf::internal::WireFormatLite::ReadMessageNoVirtualNoRecursionDepth( input, add_passage())); } else { goto handle_unusual; } if (input->ExpectTag(18)) goto parse_loop_passage; input->UnsafeDecrementRecursionDepth(); if (input->ExpectAtEnd()) goto success; break; } default: { handle_unusual: if (tag == 0 || ::google::protobuf::internal::WireFormatLite::GetTagWireType(tag) == ::google::protobuf::internal::WireFormatLite::WIRETYPE_END_GROUP) { goto success; } DO_(::google::protobuf::internal::WireFormat::SkipField( input, tag, mutable_unknown_fields())); break; } } } success: // @@protoc_insertion_point(parse_success:apollo.routing.RoadSegment) return true; failure: // @@protoc_insertion_point(parse_failure:apollo.routing.RoadSegment) return false; #undef DO_ } void RoadSegment::SerializeWithCachedSizes( ::google::protobuf::io::CodedOutputStream* output) const { // @@protoc_insertion_point(serialize_start:apollo.routing.RoadSegment) // optional string id = 1; if (has_id()) { ::google::protobuf::internal::WireFormat::VerifyUTF8StringNamedField( this->id().data(), this->id().length(), ::google::protobuf::internal::WireFormat::SERIALIZE, "apollo.routing.RoadSegment.id"); ::google::protobuf::internal::WireFormatLite::WriteStringMaybeAliased( 1, this->id(), output); } // repeated .apollo.routing.Passage passage = 2; for (unsigned int i = 0, n = this->passage_size(); i < n; i++) { ::google::protobuf::internal::WireFormatLite::WriteMessageMaybeToArray( 2, this->passage(i), output); } if (_internal_metadata_.have_unknown_fields()) { ::google::protobuf::internal::WireFormat::SerializeUnknownFields( unknown_fields(), output); } // @@protoc_insertion_point(serialize_end:apollo.routing.RoadSegment) } ::google::protobuf::uint8* RoadSegment::InternalSerializeWithCachedSizesToArray( bool deterministic, ::google::protobuf::uint8* target) const { // @@protoc_insertion_point(serialize_to_array_start:apollo.routing.RoadSegment) // optional string id = 1; if (has_id()) { ::google::protobuf::internal::WireFormat::VerifyUTF8StringNamedField( this->id().data(), this->id().length(), ::google::protobuf::internal::WireFormat::SERIALIZE, "apollo.routing.RoadSegment.id"); target = ::google::protobuf::internal::WireFormatLite::WriteStringToArray( 1, this->id(), target); } // repeated .apollo.routing.Passage passage = 2; for (unsigned int i = 0, n = this->passage_size(); i < n; i++) { target = ::google::protobuf::internal::WireFormatLite:: InternalWriteMessageNoVirtualToArray( 2, this->passage(i), false, target); } if (_internal_metadata_.have_unknown_fields()) { target = ::google::protobuf::internal::WireFormat::SerializeUnknownFieldsToArray( unknown_fields(), target); } // @@protoc_insertion_point(serialize_to_array_end:apollo.routing.RoadSegment) return target; } int RoadSegment::ByteSize() const { // @@protoc_insertion_point(message_byte_size_start:apollo.routing.RoadSegment) int total_size = 0; // optional string id = 1; if (has_id()) { total_size += 1 + ::google::protobuf::internal::WireFormatLite::StringSize( this->id()); } // repeated .apollo.routing.Passage passage = 2; total_size += 1 * this->passage_size(); for (int i = 0; i < this->passage_size(); i++) { total_size += ::google::protobuf::internal::WireFormatLite::MessageSizeNoVirtual( this->passage(i)); } if (_internal_metadata_.have_unknown_fields()) { total_size += ::google::protobuf::internal::WireFormat::ComputeUnknownFieldsSize( unknown_fields()); } GOOGLE_SAFE_CONCURRENT_WRITES_BEGIN(); _cached_size_ = total_size; GOOGLE_SAFE_CONCURRENT_WRITES_END(); return total_size; } void RoadSegment::MergeFrom(const ::google::protobuf::Message& from) { // @@protoc_insertion_point(generalized_merge_from_start:apollo.routing.RoadSegment) if (GOOGLE_PREDICT_FALSE(&from == this)) { ::google::protobuf::internal::MergeFromFail(__FILE__, __LINE__); } const RoadSegment* source = ::google::protobuf::internal::DynamicCastToGenerated<const RoadSegment>( &from); if (source == NULL) { // @@protoc_insertion_point(generalized_merge_from_cast_fail:apollo.routing.RoadSegment) ::google::protobuf::internal::ReflectionOps::Merge(from, this); } else { // @@protoc_insertion_point(generalized_merge_from_cast_success:apollo.routing.RoadSegment) MergeFrom(*source); } } void RoadSegment::MergeFrom(const RoadSegment& from) { // @@protoc_insertion_point(class_specific_merge_from_start:apollo.routing.RoadSegment) if (GOOGLE_PREDICT_FALSE(&from == this)) { ::google::protobuf::internal::MergeFromFail(__FILE__, __LINE__); } passage_.MergeFrom(from.passage_); if (from._has_bits_[0 / 32] & (0xffu << (0 % 32))) { if (from.has_id()) { set_has_id(); id_.AssignWithDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), from.id_); } } if (from._internal_metadata_.have_unknown_fields()) { mutable_unknown_fields()->MergeFrom(from.unknown_fields()); } } void RoadSegment::CopyFrom(const ::google::protobuf::Message& from) { // @@protoc_insertion_point(generalized_copy_from_start:apollo.routing.RoadSegment) if (&from == this) return; Clear(); MergeFrom(from); } void RoadSegment::CopyFrom(const RoadSegment& from) { // @@protoc_insertion_point(class_specific_copy_from_start:apollo.routing.RoadSegment) if (&from == this) return; Clear(); MergeFrom(from); } bool RoadSegment::IsInitialized() const { return true; } void RoadSegment::Swap(RoadSegment* other) { if (other == this) return; InternalSwap(other); } void RoadSegment::InternalSwap(RoadSegment* other) { id_.Swap(&other->id_); passage_.UnsafeArenaSwap(&other->passage_); std::swap(_has_bits_[0], other->_has_bits_[0]); _internal_metadata_.Swap(&other->_internal_metadata_); std::swap(_cached_size_, other->_cached_size_); } ::google::protobuf::Metadata RoadSegment::GetMetadata() const { protobuf_AssignDescriptorsOnce(); ::google::protobuf::Metadata metadata; metadata.descriptor = RoadSegment_descriptor_; metadata.reflection = RoadSegment_reflection_; return metadata; } #if PROTOBUF_INLINE_NOT_IN_HEADERS // RoadSegment // optional string id = 1; bool RoadSegment::has_id() const { return (_has_bits_[0] & 0x00000001u) != 0; } void RoadSegment::set_has_id() { _has_bits_[0] |= 0x00000001u; } void RoadSegment::clear_has_id() { _has_bits_[0] &= ~0x00000001u; } void RoadSegment::clear_id() { id_.ClearToEmptyNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); clear_has_id(); } const ::std::string& RoadSegment::id() const { // @@protoc_insertion_point(field_get:apollo.routing.RoadSegment.id) return id_.GetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); } void RoadSegment::set_id(const ::std::string& value) { set_has_id(); id_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), value); // @@protoc_insertion_point(field_set:apollo.routing.RoadSegment.id) } void RoadSegment::set_id(const char* value) { set_has_id(); id_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), ::std::string(value)); // @@protoc_insertion_point(field_set_char:apollo.routing.RoadSegment.id) } void RoadSegment::set_id(const char* value, size_t size) { set_has_id(); id_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), ::std::string(reinterpret_cast<const char*>(value), size)); // @@protoc_insertion_point(field_set_pointer:apollo.routing.RoadSegment.id) } ::std::string* RoadSegment::mutable_id() { set_has_id(); // @@protoc_insertion_point(field_mutable:apollo.routing.RoadSegment.id) return id_.MutableNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); } ::std::string* RoadSegment::release_id() { // @@protoc_insertion_point(field_release:apollo.routing.RoadSegment.id) clear_has_id(); return id_.ReleaseNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); } void RoadSegment::set_allocated_id(::std::string* id) { if (id != NULL) { set_has_id(); } else { clear_has_id(); } id_.SetAllocatedNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), id); // @@protoc_insertion_point(field_set_allocated:apollo.routing.RoadSegment.id) } // repeated .apollo.routing.Passage passage = 2; int RoadSegment::passage_size() const { return passage_.size(); } void RoadSegment::clear_passage() { passage_.Clear(); } const ::apollo::routing::Passage& RoadSegment::passage(int index) const { // @@protoc_insertion_point(field_get:apollo.routing.RoadSegment.passage) return passage_.Get(index); } ::apollo::routing::Passage* RoadSegment::mutable_passage(int index) { // @@protoc_insertion_point(field_mutable:apollo.routing.RoadSegment.passage) return passage_.Mutable(index); } ::apollo::routing::Passage* RoadSegment::add_passage() { // @@protoc_insertion_point(field_add:apollo.routing.RoadSegment.passage) return passage_.Add(); } ::google::protobuf::RepeatedPtrField< ::apollo::routing::Passage >* RoadSegment::mutable_passage() { // @@protoc_insertion_point(field_mutable_list:apollo.routing.RoadSegment.passage) return &passage_; } const ::google::protobuf::RepeatedPtrField< ::apollo::routing::Passage >& RoadSegment::passage() const { // @@protoc_insertion_point(field_list:apollo.routing.RoadSegment.passage) return passage_; } #endif // PROTOBUF_INLINE_NOT_IN_HEADERS // =================================================================== #if !defined(_MSC_VER) || _MSC_VER >= 1900 const int RoutingResponse::kHeaderFieldNumber; const int RoutingResponse::kRoadFieldNumber; const int RoutingResponse::kMeasurementFieldNumber; const int RoutingResponse::kRoutingRequestFieldNumber; const int RoutingResponse::kMapVersionFieldNumber; const int RoutingResponse::kStatusFieldNumber; #endif // !defined(_MSC_VER) || _MSC_VER >= 1900 RoutingResponse::RoutingResponse() : ::google::protobuf::Message(), _internal_metadata_(NULL) { SharedCtor(); // @@protoc_insertion_point(constructor:apollo.routing.RoutingResponse) } void RoutingResponse::InitAsDefaultInstance() { header_ = const_cast< ::apollo::common::Header*>(&::apollo::common::Header::default_instance()); measurement_ = const_cast< ::apollo::routing::Measurement*>(&::apollo::routing::Measurement::default_instance()); routing_request_ = const_cast< ::apollo::routing::RoutingRequest*>(&::apollo::routing::RoutingRequest::default_instance()); status_ = const_cast< ::apollo::common::StatusPb*>(&::apollo::common::StatusPb::default_instance()); } RoutingResponse::RoutingResponse(const RoutingResponse& from) : ::google::protobuf::Message(), _internal_metadata_(NULL) { SharedCtor(); MergeFrom(from); // @@protoc_insertion_point(copy_constructor:apollo.routing.RoutingResponse) } void RoutingResponse::SharedCtor() { ::google::protobuf::internal::GetEmptyString(); _cached_size_ = 0; header_ = NULL; measurement_ = NULL; routing_request_ = NULL; map_version_.UnsafeSetDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); status_ = NULL; ::memset(_has_bits_, 0, sizeof(_has_bits_)); } RoutingResponse::~RoutingResponse() { // @@protoc_insertion_point(destructor:apollo.routing.RoutingResponse) SharedDtor(); } void RoutingResponse::SharedDtor() { map_version_.DestroyNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); if (this != default_instance_) { delete header_; delete measurement_; delete routing_request_; delete status_; } } void RoutingResponse::SetCachedSize(int size) const { GOOGLE_SAFE_CONCURRENT_WRITES_BEGIN(); _cached_size_ = size; GOOGLE_SAFE_CONCURRENT_WRITES_END(); } const ::google::protobuf::Descriptor* RoutingResponse::descriptor() { protobuf_AssignDescriptorsOnce(); return RoutingResponse_descriptor_; } const RoutingResponse& RoutingResponse::default_instance() { if (default_instance_ == NULL) protobuf_AddDesc_routing_2frouting_2eproto(); return *default_instance_; } RoutingResponse* RoutingResponse::default_instance_ = NULL; RoutingResponse* RoutingResponse::New(::google::protobuf::Arena* arena) const { RoutingResponse* n = new RoutingResponse; if (arena != NULL) { arena->Own(n); } return n; } void RoutingResponse::Clear() { // @@protoc_insertion_point(message_clear_start:apollo.routing.RoutingResponse) if (_has_bits_[0 / 32] & 61u) { if (has_header()) { if (header_ != NULL) header_->::apollo::common::Header::Clear(); } if (has_measurement()) { if (measurement_ != NULL) measurement_->::apollo::routing::Measurement::Clear(); } if (has_routing_request()) { if (routing_request_ != NULL) routing_request_->::apollo::routing::RoutingRequest::Clear(); } if (has_map_version()) { map_version_.ClearToEmptyNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); } if (has_status()) { if (status_ != NULL) status_->::apollo::common::StatusPb::Clear(); } } road_.Clear(); ::memset(_has_bits_, 0, sizeof(_has_bits_)); if (_internal_metadata_.have_unknown_fields()) { mutable_unknown_fields()->Clear(); } } bool RoutingResponse::MergePartialFromCodedStream( ::google::protobuf::io::CodedInputStream* input) { #define DO_(EXPRESSION) if (!GOOGLE_PREDICT_TRUE(EXPRESSION)) goto failure ::google::protobuf::uint32 tag; // @@protoc_insertion_point(parse_start:apollo.routing.RoutingResponse) for (;;) { ::std::pair< ::google::protobuf::uint32, bool> p = input->ReadTagWithCutoff(127); tag = p.first; if (!p.second) goto handle_unusual; switch (::google::protobuf::internal::WireFormatLite::GetTagFieldNumber(tag)) { // optional .apollo.common.Header header = 1; case 1: { if (tag == 10) { DO_(::google::protobuf::internal::WireFormatLite::ReadMessageNoVirtual( input, mutable_header())); } else { goto handle_unusual; } if (input->ExpectTag(18)) goto parse_road; break; } // repeated .apollo.routing.RoadSegment road = 2; case 2: { if (tag == 18) { parse_road: DO_(input->IncrementRecursionDepth()); parse_loop_road: DO_(::google::protobuf::internal::WireFormatLite::ReadMessageNoVirtualNoRecursionDepth( input, add_road())); } else { goto handle_unusual; } if (input->ExpectTag(18)) goto parse_loop_road; input->UnsafeDecrementRecursionDepth(); if (input->ExpectTag(26)) goto parse_measurement; break; } // optional .apollo.routing.Measurement measurement = 3; case 3: { if (tag == 26) { parse_measurement: DO_(::google::protobuf::internal::WireFormatLite::ReadMessageNoVirtual( input, mutable_measurement())); } else { goto handle_unusual; } if (input->ExpectTag(34)) goto parse_routing_request; break; } // optional .apollo.routing.RoutingRequest routing_request = 4; case 4: { if (tag == 34) { parse_routing_request: DO_(::google::protobuf::internal::WireFormatLite::ReadMessageNoVirtual( input, mutable_routing_request())); } else { goto handle_unusual; } if (input->ExpectTag(42)) goto parse_map_version; break; } // optional bytes map_version = 5; case 5: { if (tag == 42) { parse_map_version: DO_(::google::protobuf::internal::WireFormatLite::ReadBytes( input, this->mutable_map_version())); } else { goto handle_unusual; } if (input->ExpectTag(50)) goto parse_status; break; } // optional .apollo.common.StatusPb status = 6; case 6: { if (tag == 50) { parse_status: DO_(::google::protobuf::internal::WireFormatLite::ReadMessageNoVirtual( input, mutable_status())); } else { goto handle_unusual; } if (input->ExpectAtEnd()) goto success; break; } default: { handle_unusual: if (tag == 0 || ::google::protobuf::internal::WireFormatLite::GetTagWireType(tag) == ::google::protobuf::internal::WireFormatLite::WIRETYPE_END_GROUP) { goto success; } DO_(::google::protobuf::internal::WireFormat::SkipField( input, tag, mutable_unknown_fields())); break; } } } success: // @@protoc_insertion_point(parse_success:apollo.routing.RoutingResponse) return true; failure: // @@protoc_insertion_point(parse_failure:apollo.routing.RoutingResponse) return false; #undef DO_ } void RoutingResponse::SerializeWithCachedSizes( ::google::protobuf::io::CodedOutputStream* output) const { // @@protoc_insertion_point(serialize_start:apollo.routing.RoutingResponse) // optional .apollo.common.Header header = 1; if (has_header()) { ::google::protobuf::internal::WireFormatLite::WriteMessageMaybeToArray( 1, *this->header_, output); } // repeated .apollo.routing.RoadSegment road = 2; for (unsigned int i = 0, n = this->road_size(); i < n; i++) { ::google::protobuf::internal::WireFormatLite::WriteMessageMaybeToArray( 2, this->road(i), output); } // optional .apollo.routing.Measurement measurement = 3; if (has_measurement()) { ::google::protobuf::internal::WireFormatLite::WriteMessageMaybeToArray( 3, *this->measurement_, output); } // optional .apollo.routing.RoutingRequest routing_request = 4; if (has_routing_request()) { ::google::protobuf::internal::WireFormatLite::WriteMessageMaybeToArray( 4, *this->routing_request_, output); } // optional bytes map_version = 5; if (has_map_version()) { ::google::protobuf::internal::WireFormatLite::WriteBytesMaybeAliased( 5, this->map_version(), output); } // optional .apollo.common.StatusPb status = 6; if (has_status()) { ::google::protobuf::internal::WireFormatLite::WriteMessageMaybeToArray( 6, *this->status_, output); } if (_internal_metadata_.have_unknown_fields()) { ::google::protobuf::internal::WireFormat::SerializeUnknownFields( unknown_fields(), output); } // @@protoc_insertion_point(serialize_end:apollo.routing.RoutingResponse) } ::google::protobuf::uint8* RoutingResponse::InternalSerializeWithCachedSizesToArray( bool deterministic, ::google::protobuf::uint8* target) const { // @@protoc_insertion_point(serialize_to_array_start:apollo.routing.RoutingResponse) // optional .apollo.common.Header header = 1; if (has_header()) { target = ::google::protobuf::internal::WireFormatLite:: InternalWriteMessageNoVirtualToArray( 1, *this->header_, false, target); } // repeated .apollo.routing.RoadSegment road = 2; for (unsigned int i = 0, n = this->road_size(); i < n; i++) { target = ::google::protobuf::internal::WireFormatLite:: InternalWriteMessageNoVirtualToArray( 2, this->road(i), false, target); } // optional .apollo.routing.Measurement measurement = 3; if (has_measurement()) { target = ::google::protobuf::internal::WireFormatLite:: InternalWriteMessageNoVirtualToArray( 3, *this->measurement_, false, target); } // optional .apollo.routing.RoutingRequest routing_request = 4; if (has_routing_request()) { target = ::google::protobuf::internal::WireFormatLite:: InternalWriteMessageNoVirtualToArray( 4, *this->routing_request_, false, target); } // optional bytes map_version = 5; if (has_map_version()) { target = ::google::protobuf::internal::WireFormatLite::WriteBytesToArray( 5, this->map_version(), target); } // optional .apollo.common.StatusPb status = 6; if (has_status()) { target = ::google::protobuf::internal::WireFormatLite:: InternalWriteMessageNoVirtualToArray( 6, *this->status_, false, target); } if (_internal_metadata_.have_unknown_fields()) { target = ::google::protobuf::internal::WireFormat::SerializeUnknownFieldsToArray( unknown_fields(), target); } // @@protoc_insertion_point(serialize_to_array_end:apollo.routing.RoutingResponse) return target; } int RoutingResponse::ByteSize() const { // @@protoc_insertion_point(message_byte_size_start:apollo.routing.RoutingResponse) int total_size = 0; if (_has_bits_[0 / 32] & 61u) { // optional .apollo.common.Header header = 1; if (has_header()) { total_size += 1 + ::google::protobuf::internal::WireFormatLite::MessageSizeNoVirtual( *this->header_); } // optional .apollo.routing.Measurement measurement = 3; if (has_measurement()) { total_size += 1 + ::google::protobuf::internal::WireFormatLite::MessageSizeNoVirtual( *this->measurement_); } // optional .apollo.routing.RoutingRequest routing_request = 4; if (has_routing_request()) { total_size += 1 + ::google::protobuf::internal::WireFormatLite::MessageSizeNoVirtual( *this->routing_request_); } // optional bytes map_version = 5; if (has_map_version()) { total_size += 1 + ::google::protobuf::internal::WireFormatLite::BytesSize( this->map_version()); } // optional .apollo.common.StatusPb status = 6; if (has_status()) { total_size += 1 + ::google::protobuf::internal::WireFormatLite::MessageSizeNoVirtual( *this->status_); } } // repeated .apollo.routing.RoadSegment road = 2; total_size += 1 * this->road_size(); for (int i = 0; i < this->road_size(); i++) { total_size += ::google::protobuf::internal::WireFormatLite::MessageSizeNoVirtual( this->road(i)); } if (_internal_metadata_.have_unknown_fields()) { total_size += ::google::protobuf::internal::WireFormat::ComputeUnknownFieldsSize( unknown_fields()); } GOOGLE_SAFE_CONCURRENT_WRITES_BEGIN(); _cached_size_ = total_size; GOOGLE_SAFE_CONCURRENT_WRITES_END(); return total_size; } void RoutingResponse::MergeFrom(const ::google::protobuf::Message& from) { // @@protoc_insertion_point(generalized_merge_from_start:apollo.routing.RoutingResponse) if (GOOGLE_PREDICT_FALSE(&from == this)) { ::google::protobuf::internal::MergeFromFail(__FILE__, __LINE__); } const RoutingResponse* source = ::google::protobuf::internal::DynamicCastToGenerated<const RoutingResponse>( &from); if (source == NULL) { // @@protoc_insertion_point(generalized_merge_from_cast_fail:apollo.routing.RoutingResponse) ::google::protobuf::internal::ReflectionOps::Merge(from, this); } else { // @@protoc_insertion_point(generalized_merge_from_cast_success:apollo.routing.RoutingResponse) MergeFrom(*source); } } void RoutingResponse::MergeFrom(const RoutingResponse& from) { // @@protoc_insertion_point(class_specific_merge_from_start:apollo.routing.RoutingResponse) if (GOOGLE_PREDICT_FALSE(&from == this)) { ::google::protobuf::internal::MergeFromFail(__FILE__, __LINE__); } road_.MergeFrom(from.road_); if (from._has_bits_[0 / 32] & (0xffu << (0 % 32))) { if (from.has_header()) { mutable_header()->::apollo::common::Header::MergeFrom(from.header()); } if (from.has_measurement()) { mutable_measurement()->::apollo::routing::Measurement::MergeFrom(from.measurement()); } if (from.has_routing_request()) { mutable_routing_request()->::apollo::routing::RoutingRequest::MergeFrom(from.routing_request()); } if (from.has_map_version()) { set_has_map_version(); map_version_.AssignWithDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), from.map_version_); } if (from.has_status()) { mutable_status()->::apollo::common::StatusPb::MergeFrom(from.status()); } } if (from._internal_metadata_.have_unknown_fields()) { mutable_unknown_fields()->MergeFrom(from.unknown_fields()); } } void RoutingResponse::CopyFrom(const ::google::protobuf::Message& from) { // @@protoc_insertion_point(generalized_copy_from_start:apollo.routing.RoutingResponse) if (&from == this) return; Clear(); MergeFrom(from); } void RoutingResponse::CopyFrom(const RoutingResponse& from) { // @@protoc_insertion_point(class_specific_copy_from_start:apollo.routing.RoutingResponse) if (&from == this) return; Clear(); MergeFrom(from); } bool RoutingResponse::IsInitialized() const { return true; } void RoutingResponse::Swap(RoutingResponse* other) { if (other == this) return; InternalSwap(other); } void RoutingResponse::InternalSwap(RoutingResponse* other) { std::swap(header_, other->header_); road_.UnsafeArenaSwap(&other->road_); std::swap(measurement_, other->measurement_); std::swap(routing_request_, other->routing_request_); map_version_.Swap(&other->map_version_); std::swap(status_, other->status_); std::swap(_has_bits_[0], other->_has_bits_[0]); _internal_metadata_.Swap(&other->_internal_metadata_); std::swap(_cached_size_, other->_cached_size_); } ::google::protobuf::Metadata RoutingResponse::GetMetadata() const { protobuf_AssignDescriptorsOnce(); ::google::protobuf::Metadata metadata; metadata.descriptor = RoutingResponse_descriptor_; metadata.reflection = RoutingResponse_reflection_; return metadata; } #if PROTOBUF_INLINE_NOT_IN_HEADERS // RoutingResponse // optional .apollo.common.Header header = 1; bool RoutingResponse::has_header() const { return (_has_bits_[0] & 0x00000001u) != 0; } void RoutingResponse::set_has_header() { _has_bits_[0] |= 0x00000001u; } void RoutingResponse::clear_has_header() { _has_bits_[0] &= ~0x00000001u; } void RoutingResponse::clear_header() { if (header_ != NULL) header_->::apollo::common::Header::Clear(); clear_has_header(); } const ::apollo::common::Header& RoutingResponse::header() const { // @@protoc_insertion_point(field_get:apollo.routing.RoutingResponse.header) return header_ != NULL ? *header_ : *default_instance_->header_; } ::apollo::common::Header* RoutingResponse::mutable_header() { set_has_header(); if (header_ == NULL) { header_ = new ::apollo::common::Header; } // @@protoc_insertion_point(field_mutable:apollo.routing.RoutingResponse.header) return header_; } ::apollo::common::Header* RoutingResponse::release_header() { // @@protoc_insertion_point(field_release:apollo.routing.RoutingResponse.header) clear_has_header(); ::apollo::common::Header* temp = header_; header_ = NULL; return temp; } void RoutingResponse::set_allocated_header(::apollo::common::Header* header) { delete header_; header_ = header; if (header) { set_has_header(); } else { clear_has_header(); } // @@protoc_insertion_point(field_set_allocated:apollo.routing.RoutingResponse.header) } // repeated .apollo.routing.RoadSegment road = 2; int RoutingResponse::road_size() const { return road_.size(); } void RoutingResponse::clear_road() { road_.Clear(); } const ::apollo::routing::RoadSegment& RoutingResponse::road(int index) const { // @@protoc_insertion_point(field_get:apollo.routing.RoutingResponse.road) return road_.Get(index); } ::apollo::routing::RoadSegment* RoutingResponse::mutable_road(int index) { // @@protoc_insertion_point(field_mutable:apollo.routing.RoutingResponse.road) return road_.Mutable(index); } ::apollo::routing::RoadSegment* RoutingResponse::add_road() { // @@protoc_insertion_point(field_add:apollo.routing.RoutingResponse.road) return road_.Add(); } ::google::protobuf::RepeatedPtrField< ::apollo::routing::RoadSegment >* RoutingResponse::mutable_road() { // @@protoc_insertion_point(field_mutable_list:apollo.routing.RoutingResponse.road) return &road_; } const ::google::protobuf::RepeatedPtrField< ::apollo::routing::RoadSegment >& RoutingResponse::road() const { // @@protoc_insertion_point(field_list:apollo.routing.RoutingResponse.road) return road_; } // optional .apollo.routing.Measurement measurement = 3; bool RoutingResponse::has_measurement() const { return (_has_bits_[0] & 0x00000004u) != 0; } void RoutingResponse::set_has_measurement() { _has_bits_[0] |= 0x00000004u; } void RoutingResponse::clear_has_measurement() { _has_bits_[0] &= ~0x00000004u; } void RoutingResponse::clear_measurement() { if (measurement_ != NULL) measurement_->::apollo::routing::Measurement::Clear(); clear_has_measurement(); } const ::apollo::routing::Measurement& RoutingResponse::measurement() const { // @@protoc_insertion_point(field_get:apollo.routing.RoutingResponse.measurement) return measurement_ != NULL ? *measurement_ : *default_instance_->measurement_; } ::apollo::routing::Measurement* RoutingResponse::mutable_measurement() { set_has_measurement(); if (measurement_ == NULL) { measurement_ = new ::apollo::routing::Measurement; } // @@protoc_insertion_point(field_mutable:apollo.routing.RoutingResponse.measurement) return measurement_; } ::apollo::routing::Measurement* RoutingResponse::release_measurement() { // @@protoc_insertion_point(field_release:apollo.routing.RoutingResponse.measurement) clear_has_measurement(); ::apollo::routing::Measurement* temp = measurement_; measurement_ = NULL; return temp; } void RoutingResponse::set_allocated_measurement(::apollo::routing::Measurement* measurement) { delete measurement_; measurement_ = measurement; if (measurement) { set_has_measurement(); } else { clear_has_measurement(); } // @@protoc_insertion_point(field_set_allocated:apollo.routing.RoutingResponse.measurement) } // optional .apollo.routing.RoutingRequest routing_request = 4; bool RoutingResponse::has_routing_request() const { return (_has_bits_[0] & 0x00000008u) != 0; } void RoutingResponse::set_has_routing_request() { _has_bits_[0] |= 0x00000008u; } void RoutingResponse::clear_has_routing_request() { _has_bits_[0] &= ~0x00000008u; } void RoutingResponse::clear_routing_request() { if (routing_request_ != NULL) routing_request_->::apollo::routing::RoutingRequest::Clear(); clear_has_routing_request(); } const ::apollo::routing::RoutingRequest& RoutingResponse::routing_request() const { // @@protoc_insertion_point(field_get:apollo.routing.RoutingResponse.routing_request) return routing_request_ != NULL ? *routing_request_ : *default_instance_->routing_request_; } ::apollo::routing::RoutingRequest* RoutingResponse::mutable_routing_request() { set_has_routing_request(); if (routing_request_ == NULL) { routing_request_ = new ::apollo::routing::RoutingRequest; } // @@protoc_insertion_point(field_mutable:apollo.routing.RoutingResponse.routing_request) return routing_request_; } ::apollo::routing::RoutingRequest* RoutingResponse::release_routing_request() { // @@protoc_insertion_point(field_release:apollo.routing.RoutingResponse.routing_request) clear_has_routing_request(); ::apollo::routing::RoutingRequest* temp = routing_request_; routing_request_ = NULL; return temp; } void RoutingResponse::set_allocated_routing_request(::apollo::routing::RoutingRequest* routing_request) { delete routing_request_; routing_request_ = routing_request; if (routing_request) { set_has_routing_request(); } else { clear_has_routing_request(); } // @@protoc_insertion_point(field_set_allocated:apollo.routing.RoutingResponse.routing_request) } // optional bytes map_version = 5; bool RoutingResponse::has_map_version() const { return (_has_bits_[0] & 0x00000010u) != 0; } void RoutingResponse::set_has_map_version() { _has_bits_[0] |= 0x00000010u; } void RoutingResponse::clear_has_map_version() { _has_bits_[0] &= ~0x00000010u; } void RoutingResponse::clear_map_version() { map_version_.ClearToEmptyNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); clear_has_map_version(); } const ::std::string& RoutingResponse::map_version() const { // @@protoc_insertion_point(field_get:apollo.routing.RoutingResponse.map_version) return map_version_.GetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); } void RoutingResponse::set_map_version(const ::std::string& value) { set_has_map_version(); map_version_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), value); // @@protoc_insertion_point(field_set:apollo.routing.RoutingResponse.map_version) } void RoutingResponse::set_map_version(const char* value) { set_has_map_version(); map_version_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), ::std::string(value)); // @@protoc_insertion_point(field_set_char:apollo.routing.RoutingResponse.map_version) } void RoutingResponse::set_map_version(const void* value, size_t size) { set_has_map_version(); map_version_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), ::std::string(reinterpret_cast<const char*>(value), size)); // @@protoc_insertion_point(field_set_pointer:apollo.routing.RoutingResponse.map_version) } ::std::string* RoutingResponse::mutable_map_version() { set_has_map_version(); // @@protoc_insertion_point(field_mutable:apollo.routing.RoutingResponse.map_version) return map_version_.MutableNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); } ::std::string* RoutingResponse::release_map_version() { // @@protoc_insertion_point(field_release:apollo.routing.RoutingResponse.map_version) clear_has_map_version(); return map_version_.ReleaseNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); } void RoutingResponse::set_allocated_map_version(::std::string* map_version) { if (map_version != NULL) { set_has_map_version(); } else { clear_has_map_version(); } map_version_.SetAllocatedNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), map_version); // @@protoc_insertion_point(field_set_allocated:apollo.routing.RoutingResponse.map_version) } // optional .apollo.common.StatusPb status = 6; bool RoutingResponse::has_status() const { return (_has_bits_[0] & 0x00000020u) != 0; } void RoutingResponse::set_has_status() { _has_bits_[0] |= 0x00000020u; } void RoutingResponse::clear_has_status() { _has_bits_[0] &= ~0x00000020u; } void RoutingResponse::clear_status() { if (status_ != NULL) status_->::apollo::common::StatusPb::Clear(); clear_has_status(); } const ::apollo::common::StatusPb& RoutingResponse::status() const { // @@protoc_insertion_point(field_get:apollo.routing.RoutingResponse.status) return status_ != NULL ? *status_ : *default_instance_->status_; } ::apollo::common::StatusPb* RoutingResponse::mutable_status() { set_has_status(); if (status_ == NULL) { status_ = new ::apollo::common::StatusPb; } // @@protoc_insertion_point(field_mutable:apollo.routing.RoutingResponse.status) return status_; } ::apollo::common::StatusPb* RoutingResponse::release_status() { // @@protoc_insertion_point(field_release:apollo.routing.RoutingResponse.status) clear_has_status(); ::apollo::common::StatusPb* temp = status_; status_ = NULL; return temp; } void RoutingResponse::set_allocated_status(::apollo::common::StatusPb* status) { delete status_; status_ = status; if (status) { set_has_status(); } else { clear_has_status(); } // @@protoc_insertion_point(field_set_allocated:apollo.routing.RoutingResponse.status) } #endif // PROTOBUF_INLINE_NOT_IN_HEADERS // @@protoc_insertion_point(namespace_scope) } // namespace routing } // namespace apollo // @@protoc_insertion_point(global_scope)
34.880868
125
0.711731
racestart
4b9686a3e5a95572d2db9aa9018c540c4c34bdef
3,505
hpp
C++
lib/audiodev/AudioSubmix.hpp
Austint30/boo
e9b2c5f96c4d48e57ca5b8eb0aa41504f4a81672
[ "MIT" ]
7
2016-04-16T04:37:59.000Z
2022-02-01T12:39:04.000Z
lib/audiodev/AudioSubmix.hpp
Jcw87/boo
c4bb325d059eb032c48a72a99a0b3f0a419d8017
[ "MIT" ]
8
2016-07-13T03:20:04.000Z
2021-06-30T05:07:10.000Z
lib/audiodev/AudioSubmix.hpp
Jcw87/boo
c4bb325d059eb032c48a72a99a0b3f0a419d8017
[ "MIT" ]
11
2016-04-16T04:40:46.000Z
2022-02-06T04:23:17.000Z
#pragma once #include <array> #include <cstddef> #include <cstdint> #include <list> #include <mutex> #include <unordered_map> #include <vector> #include "boo/audiodev/IAudioSubmix.hpp" #include "lib/audiodev/Common.hpp" #if defined(__x86_64__) || defined(_M_AMD64) #include <immintrin.h> #elif defined(__aarch64__) || defined(_M_ARM64) #define __SSE__ 1 #include "sse2neon.h" #endif struct AudioUnitVoiceEngine; struct VSTVoiceEngine; struct WAVOutVoiceEngine; namespace boo { class BaseAudioVoiceEngine; class AudioVoice; struct AudioVoiceEngineMixInfo; /* Output gains for each mix-send/channel */ class AudioSubmix : public ListNode<AudioSubmix, BaseAudioVoiceEngine*, IAudioSubmix> { friend class BaseAudioVoiceEngine; friend class AudioVoiceMono; friend class AudioVoiceStereo; friend struct WASAPIAudioVoiceEngine; friend struct ::AudioUnitVoiceEngine; friend struct ::VSTVoiceEngine; friend struct ::WAVOutVoiceEngine; /* Mixer-engine relationships */ int m_busId; bool m_mainOut; /* Callback (effect source, optional) */ IAudioSubmixCallback* m_cb; /* Slew state for output gains */ size_t m_slewFrames = 0; size_t m_curSlewFrame = 0; /* Output gains for each mix-send/channel */ std::unordered_map<IAudioSubmix*, std::array<float, 2>> m_sendGains; /* Temporary scratch buffers for accumulating submix audio */ std::vector<int16_t> m_scratch16; std::vector<int32_t> m_scratch32; std::vector<float> m_scratchFlt; template <typename T> std::vector<T>& _getScratch(); /* Override scratch buffers with alternate destination */ int16_t* m_redirect16 = nullptr; int32_t* m_redirect32 = nullptr; float* m_redirectFlt = nullptr; template <typename T> T*& _getRedirect(); /* C3-linearization support (to mitigate a potential diamond problem on 'clever' submix routes) */ bool _isDirectDependencyOf(AudioSubmix* send); std::list<AudioSubmix*> _linearizeC3(); static bool _mergeC3(std::list<AudioSubmix*>& output, std::vector<std::list<AudioSubmix*>>& lists); /* Fill scratch buffers with silence for new mix cycle */ template <typename T> void _zeroFill(); /* Receive audio from a single voice / submix */ template <typename T> T* _getMergeBuf(size_t frames); /* Mix scratch buffers into sends */ template <typename T> size_t _pumpAndMix(size_t frames); void _resetOutputSampleRate(); public: static AudioSubmix*& _getHeadPtr(BaseAudioVoiceEngine* head); static std::unique_lock<std::recursive_mutex> _getHeadLock(BaseAudioVoiceEngine* head); AudioSubmix(BaseAudioVoiceEngine& root, IAudioSubmixCallback* cb, int busId, bool mainOut); ~AudioSubmix() override; void resetSendLevels() override; void setSendLevel(IAudioSubmix* submix, float level, bool slew) override; const AudioVoiceEngineMixInfo& mixInfo() const; double getSampleRate() const override; SubmixFormat getSampleFormat() const override; }; template <> inline std::vector<int16_t>& AudioSubmix::_getScratch() { return m_scratch16; } template <> inline std::vector<int32_t>& AudioSubmix::_getScratch() { return m_scratch32; } template <> inline std::vector<float>& AudioSubmix::_getScratch() { return m_scratchFlt; } template <> inline int16_t*& AudioSubmix::_getRedirect<int16_t>() { return m_redirect16; } template <> inline int32_t*& AudioSubmix::_getRedirect<int32_t>() { return m_redirect32; } template <> inline float*& AudioSubmix::_getRedirect<float>() { return m_redirectFlt; } } // namespace boo
27.382813
101
0.750357
Austint30
4b976d2fcb1f0c18c51c96b07f21b0b3e0cd673f
6,711
cpp
C++
tests/stress_block_in.cpp
zsummer/fn_log
bc06f15c1b1500684dbe556ee36f10f5caad32a8
[ "MIT" ]
4
2019-05-26T14:23:09.000Z
2019-05-31T08:19:54.000Z
tests/stress_block_in.cpp
zsummer/fn_log
bc06f15c1b1500684dbe556ee36f10f5caad32a8
[ "MIT" ]
null
null
null
tests/stress_block_in.cpp
zsummer/fn_log
bc06f15c1b1500684dbe556ee36f10f5caad32a8
[ "MIT" ]
1
2019-05-27T13:07:36.000Z
2019-05-27T13:07:36.000Z
#define FN_LOG_MAX_CHANNEL_SIZE 4 #define FN_LOG_MAX_LOG_SIZE 1000 #define FN_LOG_MAX_LOG_QUEUE_SIZE 100000 #include "fn_log.h" static const std::string example_config_text = R"----( # 压测配表 # 0通道为异步模式写文件, info多线程文件输出和一个CATEGORY筛选的屏显输出 - channel: 0 sync: null priority: trace category: 0 category_extend: 0 -device: 0 disable: false out_type: screen priority: trace category: 0 category_extend: 1 path: "./log/" file: "$PNAME_00" rollback: 4 limit_size: 100 m #only support M byte -device: 1 disable: false out_type: file priority: debug category: 1 category_extend: 1 path: "./log/" file: "$PNAME_01" rollback: 4 limit_size: 100 m #only support M byte -device: 2 disable: false out_type: file priority: trace category: 8 category_extend: 9 path: "./log/" file: "$PNAME_02" rollback: 4 limit_size: 100 m #only support M byte -device: 3 disable: false out_type: file priority: trace category: 3 category_extend: 3 path: "./log/" file: "$PNAME_03" rollback: 4 limit_size: 100 m #only support M byte -device: 4 disable: false out_type: file priority: trace category_filter: 0, 4,5 path: "./log/" file: "$PNAME_04" rollback: 4 limit_size: 100 m #only support M byte -device: 5 disable: false out_type: file priority: trace category_filter: 4,5 identify_filter: 0,1,4,7,16,36,46 path: "./log/" file: "$PNAME_05" rollback: 4 limit_size: 100 m #only support M byte -device: 6 disable: false out_type: file priority: trace category_filter: 4,8 identify_filter: 0,1,4,7,16,36,46 path: "./log/" file: "$PNAME_06" rollback: 4 limit_size: 100 m #only support M byte -device: 7 disable: false out_type: file priority: trace identify: 6 identify_extend: 1 path: "./log/" file: "$PNAME_07" rollback: 4 limit_size: 100 m #only support M byte -device: 8 disable: false out_type: file priority: trace category: 0 category_extend: 1 identify: 6 identify_extend: 1 path: "./log/" file: "$PNAME_08" rollback: 4 limit_size: 100 m #only support M byte -device: 9 disable: false out_type: file priority: trace category: 9 category_extend: 10 identify: 9 identify_extend: 10 path: "./log/" file: "$PNAME_09" rollback: 4 limit_size: 100 m #only support M byte -device: 10 disable: false out_type: file priority: trace category: 9 category_extend: 10 identify: 69 identify_extend: 10 path: "./log/" file: "$PNAME_10" rollback: 4 limit_size: 100 m #only support M byte -device: 11 disable: false out_type: file priority: trace category: 9 category_extend: 10 identify: 19 identify_extend: 10 path: "./log/" file: "$PNAME_11" rollback: 4 limit_size: 100 m #only support M byte -device: 12 disable: false out_type: file priority: debug category: 9 category_extend: 10 identify: 999 identify_extend: 10 path: "./log/" file: "$PNAME_12" rollback: 4 limit_size: 100 m #only support M byte -device: 13 disable: false out_type: file priority: trace category: 9 category_extend: 10 identify: 9999 identify_extend: 10 path: "./log/" file: "$PNAME_13" rollback: 4 limit_size: 100 m #only support M byte -device: 14 disable: false out_type: file priority: trace category: 9 category_extend: 10 identify: 79 identify_extend: 10 path: "./log/" file: "$PNAME_14" rollback: 4 limit_size: 100 m #only support M byte -device: 15 disable: false out_type: file priority: trace category: 69 category_extend: 10 identify: 9 identify_extend: 10 path: "./log/" file: "$PNAME_15" rollback: 4 limit_size: 100 m #only support M byte -device: 16 disable: false out_type: file priority: trace category: 59 category_extend: 10 identify: 9 identify_extend: 10 path: "./log/" file: "$PNAME_16" rollback: 4 limit_size: 100 m #only support M byte # 1 异步空 - channel: 1 # 2通道为同步写文件 - channel: 2 sync: sync #only support single thread -device: 0 disable: false out_type: file file: "$PNAME_$YEAR" rollback: 4 limit_size: 100 m #only support M byte # 3通道为同步空 - channel: 3 sync: sync #only support single thread )----"; std::string ChannelDesc(int channel_type) { switch (channel_type) { case FNLog::CHANNEL_ASYNC: return "async thread write"; case FNLog::CHANNEL_SYNC: return "sync write"; } return "invalid channel"; } #define Now() std::chrono::duration<double>(std::chrono::system_clock::now().time_since_epoch()).count() int main(int argc, char *argv[]) { int ret = FNLog::FastStartDefaultLogger(example_config_text); if (ret != 0) { return ret; } //base test if (true) { long long loop_count = 1000000; double now = Now(); for (long long i = 0; i < loop_count; i++) { LogInfoStream(0, 1, 0) << "asdf" << i << ", " << 2.3 << "asdfasdffffffffffffffffffffffffffffffffffffffff"; } LogAlarmStream(0, 0, 0) << "per log used " << (Now() - now) * 1000 * 1000 * 1000 / loop_count << "ns"; loop_count = 10000000; now = Now(); for (long long i = 0; i < loop_count; i++) { LogTraceStream(0, 567, 986) << "asdf" << i << ", " << 2.3 << "asdfasdffffffffffffffffffffffffffffffffffffffff"; } LogAlarmStream(0, 0, 0) << "per empty log used " << (Now() - now) * 1000 * 1000 * 1000 / loop_count << "ns"; } LogAlarmStream(0, 0, 0) << "finish"; return 0; }
24.582418
123
0.539711
zsummer
4b986d6e2451f9ffa3f6e16c208b0675734d5c4a
848
hpp
C++
tools/lib/completion_context_finder.hpp
stryku/cmakesl
e53bffed62ae9ca68c0c2de0de8e2a94bfe4d326
[ "BSD-3-Clause" ]
51
2019-05-06T01:33:34.000Z
2021-11-17T11:44:54.000Z
tools/lib/completion_context_finder.hpp
stryku/cmakesl
e53bffed62ae9ca68c0c2de0de8e2a94bfe4d326
[ "BSD-3-Clause" ]
191
2019-05-06T18:31:24.000Z
2020-06-19T06:48:06.000Z
tools/lib/completion_context_finder.hpp
stryku/cmakesl
e53bffed62ae9ca68c0c2de0de8e2a94bfe4d326
[ "BSD-3-Clause" ]
3
2019-10-12T21:03:29.000Z
2020-06-19T06:22:25.000Z
#pragma once #include "common/source_location.hpp" #include "completion_contextes.hpp" #include "sema/sema_node_visitor.hpp" #include <variant> namespace cmsl::tools { class completion_context_finder : public sema::empty_sema_node_visitor { public: explicit completion_context_finder(unsigned absolute_position); void visit(const sema::translation_unit_node& node) override; void visit(const sema::function_node& node) override; void visit(const sema::block_node& node) override; void visit(const sema::class_node& node) override; completion_context_t result() const; private: bool is_inside(const sema::sema_node& node) const; bool is_before(const sema::sema_node& node) const; bool is_pos_before_node_begin(const sema::sema_node& node) const; private: const source_location m_pos; completion_context_t m_result; }; }
26.5
70
0.787736
stryku
4b9addd7f36891aba07ad1c6a862ac23bc73347d
431
cpp
C++
REDSI_1160929_1161573/boost_1_67_0/libs/smart_ptr/test/sp_explicit_inst_test.cpp
Wultyc/ISEP_1718_2A2S_REDSI_TrabalhoGrupo
eb0f7ef64e188fe871f47c2ef9cdef36d8a66bc8
[ "MIT" ]
32
2019-02-27T06:57:07.000Z
2021-08-29T10:56:19.000Z
REDSI_1160929_1161573/boost_1_67_0/libs/smart_ptr/test/sp_explicit_inst_test.cpp
Wultyc/ISEP_1718_2A2S_REDSI_TrabalhoGrupo
eb0f7ef64e188fe871f47c2ef9cdef36d8a66bc8
[ "MIT" ]
1
2019-04-04T18:00:00.000Z
2019-04-04T18:00:00.000Z
REDSI_1160929_1161573/boost_1_67_0/libs/smart_ptr/test/sp_explicit_inst_test.cpp
Wultyc/ISEP_1718_2A2S_REDSI_TrabalhoGrupo
eb0f7ef64e188fe871f47c2ef9cdef36d8a66bc8
[ "MIT" ]
5
2019-08-20T13:45:04.000Z
2022-03-01T18:23:49.000Z
// // Explicit instantiations are reported to exist in user code // // Copyright (c) 2014 Peter Dimov // // Distributed under the Boost Software License, Version 1.0. // See accompanying file LICENSE_1_0.txt or copy at // http://www.boost.org/LICENSE_1_0.txt // #include <boost/shared_ptr.hpp> template class boost::shared_ptr< int >; struct X { }; template class boost::shared_ptr< X >; int main() { }
17.958333
62
0.675174
Wultyc
4b9db2573a91b1b29a759c3b4083a6951755ca12
2,927
cpp
C++
MarchingCubes/openCLGLUtilities.cpp
b-z/Marching-Cubes-GPU
bba4d90a65758c5603bc57b8e65784109d5e7fa4
[ "BSD-3-Clause" ]
null
null
null
MarchingCubes/openCLGLUtilities.cpp
b-z/Marching-Cubes-GPU
bba4d90a65758c5603bc57b8e65784109d5e7fa4
[ "BSD-3-Clause" ]
null
null
null
MarchingCubes/openCLGLUtilities.cpp
b-z/Marching-Cubes-GPU
bba4d90a65758c5603bc57b8e65784109d5e7fa4
[ "BSD-3-Clause" ]
null
null
null
#include "openCLGLUtilities.hpp" #include <Windows.h> #include <wingdi.h> cl::Context createCLGLContext(cl_device_type type, cl_vendor vendor) { cl::Platform platform = getPlatform(type, vendor); #if defined(__APPLE__) || defined(__MACOSX) // Apple (untested) cl_context_properties cps[] = { CL_CGL_SHAREGROUP_KHR, (cl_context_properties)CGLGetShareGroup(CGLGetCurrentContext()), CL_CONTEXT_PLATFORM, (cl_context_properties)(platform)(), 0 }; #else #ifdef _WIN32 // Windows cl_context_properties cps[] = { CL_GL_CONTEXT_KHR, (cl_context_properties)wglGetCurrentContext(), CL_WGL_HDC_KHR, (cl_context_properties)wglGetCurrentDC(), CL_CONTEXT_PLATFORM, (cl_context_properties)(platform)(), 0 }; #else // Linux cl_context_properties cps[] = { CL_GL_CONTEXT_KHR, (cl_context_properties)glXGetCurrentContext(), CL_GLX_DISPLAY_KHR, (cl_context_properties)glXGetCurrentDisplay(), CL_CONTEXT_PLATFORM, (cl_context_properties)(platform)(), 0 }; #endif #endif try { // We need to check if there is more than one device first std::vector<cl::Device> devices; std::vector<cl::Device> singleDevice; platform.getDevices(type, &devices); cl::Context context; // If more than one CL device find out which one is associated with GL context if (devices.size() > 1) { cl::Device interopDevice = getValidGLCLInteropDevice(platform, cps); singleDevice.push_back(interopDevice); context = cl::Context(singleDevice, cps); } else { context = cl::Context(type, cps); } return context; } catch (cl::Error error) { throw error; } } cl::Device getValidGLCLInteropDevice(cl::Platform platform, cl_context_properties* properties) { // Function for finding a valid device for CL-GL context. // Thanks to Jim Vaughn for this contribution cl::Device displayDevice; cl_device_id interopDeviceId; int status; size_t deviceSize = 0; // Load extension function call clGetGLContextInfoKHR_fn glGetGLContextInfo_func = (clGetGLContextInfoKHR_fn)clGetExtensionFunctionAddress("clGetGLContextInfoKHR"); // Ask for the CL device associated with the GL context status = glGetGLContextInfo_func(properties, CL_CURRENT_DEVICE_FOR_GL_CONTEXT_KHR, sizeof(cl_device_id), &interopDeviceId, &deviceSize); if (deviceSize == 0) { throw cl::Error(1, "No GLGL devices found for current platform"); } if (status != CL_SUCCESS) { throw cl::Error(1, "Could not get CLGL interop device for the current platform. Failure occured during call to clGetGLContextInfoKHR."); } return cl::Device(interopDeviceId); }
29.565657
144
0.660403
b-z
4b9f20b4d75a9a3f7488a03c24289550eaeb5344
4,014
cpp
C++
src/test/MatrixSlicerSquarifiedTest.cpp
mp13on11/dwarf_mine
e9c83e8d50d5a23670a45bfd174475f7f383a709
[ "MIT" ]
2
2015-11-06T03:18:28.000Z
2016-06-29T07:43:10.000Z
src/test/MatrixSlicerSquarifiedTest.cpp
mp13on11/dwarf_mine
e9c83e8d50d5a23670a45bfd174475f7f383a709
[ "MIT" ]
null
null
null
src/test/MatrixSlicerSquarifiedTest.cpp
mp13on11/dwarf_mine
e9c83e8d50d5a23670a45bfd174475f7f383a709
[ "MIT" ]
null
null
null
/***************************************************************************** * Dwarf Mine - The 13-11 Benchmark * * Copyright (c) 2013 Bünger, Thomas; Kieschnick, Christian; Kusber, * Michael; Lohse, Henning; Wuttke, Nikolai; Xylander, Oliver; Yao, Gary; * Zimmermann, Florian * * Permission is hereby granted, free of charge, to any person obtaining * a copy of this software and associated documentation files (the * "Software"), to deal in the Software without restriction, including * without limitation the rights to use, copy, modify, merge, publish, * distribute, sublicense, and/or sell copies of the Software, and to * permit persons to whom the Software is furnished to do so, subject to * the following conditions: * * The above copyright notice and this permission notice shall be * included in all copies or substantial portions of the Software. * * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, * EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF * MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. * IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY * CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, * TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE * SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE. *****************************************************************************/ #include "MatrixSlicerSquarifiedTest.h" #include "MatrixSlicerUtil.h" #include <matrix/Matrix.h> #include <matrix/MatrixHelper.h> #include <matrix/MatrixSlice.h> #include <algorithm> #include <cstddef> using namespace std; typedef Matrix<float> TestGrid; TEST_F(MatrixSlicerSquarifiedTest, SimpleUnifiedSlicingTest) { size_t rows = 100; size_t columns = 100; size_t area = rows * columns; auto slices = slicer.layout({{0, 1.0}, {1, 1.0}, {2, 1.0}, {3, 1.0}}, rows, columns); size_t sliceArea = area / 4; verifySlices(slices, vector<size_t>{sliceArea, sliceArea, sliceArea, sliceArea}); } TEST_F(MatrixSlicerSquarifiedTest, SimpleDifferentWeightSlicingTest) { size_t rows = 100; size_t columns = 100; size_t area = rows * columns; auto slices = slicer.layout({{0, 6}, {1, 2}, {2, 1}, {3, 1}}, rows, columns); verifySlices(slices, vector<size_t>{ 6 * area / 10, 2 * area / 10, area / 10, area / 10}); } TEST_F(MatrixSlicerSquarifiedTest, UnifiedSlicingTest) { size_t rows = 33; size_t columns = 67; auto slices = slicer.layout({{0, 1.0}, {1, 1.0}, {2, 1.0}, {3, 1.0}}, rows, columns); verifySlices(slices, vector<size_t>{ 561 , 561, 561, 528}); } TEST_F(MatrixSlicerSquarifiedTest, DifferentWeightSlicingTest) { size_t rows = 33; size_t columns = 67; auto slices = slicer.layout({{0, 6}, {1, 2}, {2, 1.0}, {3, 1.0}}, rows, columns); verifySlices(slices, vector<size_t>{ 1353 , 200, 208, 450}); } TEST_F(MatrixSlicerSquarifiedTest, SliceMultipleTest) { size_t rows = 5; size_t columns = 5; auto slices = slicer.layout({{0, 1.0}, {1, 1.0}, {2, 1.0},{3, 1.0},{4, 1.0},{5, 1.0}, {6, 1.0}, {7, 1.0},}, rows, columns); bool matrix[5][5]; for(size_t row = 0; row < rows; ++row) { for(size_t column = 0; column < columns; ++column) { matrix[row][column] = false; } } for(auto slice : slices) { ASSERT_NE((size_t) 0, rows); ASSERT_NE((size_t) 0, columns); for(size_t row = 0; row < slice.getRows(); ++row) { for(size_t column = 0; column < slice.getColumns(); ++column) { ASSERT_FALSE(matrix[slice.getStartY() + row][slice.getStartX() + column]); matrix[slice.getStartY() + row][slice.getStartX() + column] = true; } } } for(size_t row = 0; row < rows; ++row) { for(size_t column = 0; column < columns; ++column) { ASSERT_TRUE(matrix[row][column]); } } }
34.016949
127
0.622571
mp13on11
4ba0581db3167a6d6058955047ce5e215e2e0eb3
24,274
cpp
C++
src/external/libjson/Source/JSONWorker.cpp
shreyasvj25/turicreate
32e84ca16aef8d04aff3d49ae9984bd49326bffd
[ "BSD-3-Clause" ]
11,356
2017-12-08T19:42:32.000Z
2022-03-31T16:55:25.000Z
src/external/libjson/Source/JSONWorker.cpp
shreyasvj25/turicreate
32e84ca16aef8d04aff3d49ae9984bd49326bffd
[ "BSD-3-Clause" ]
2,402
2017-12-08T22:31:01.000Z
2022-03-28T19:25:52.000Z
src/external/libjson/Source/JSONWorker.cpp
ZeroInfinite/turicreate
dd210c2563930881abd51fd69cb73007955b33fd
[ "BSD-3-Clause" ]
1,343
2017-12-08T19:47:19.000Z
2022-03-26T11:31:36.000Z
#include "JSONWorker.h" bool used_ascii_one = false; //used to know whether or not to check for intermediates when writing, once flipped, can't be unflipped inline json_char ascii_one(void) json_nothrow { used_ascii_one = true; return JSON_TEXT('\1'); } #ifdef JSON_READ_PRIORITY JSONNode JSONWorker::parse(const json_string & json) json_throws(std::invalid_argument) { json_auto<json_char> s; size_t len; s.set(RemoveWhiteSpace(json, len, true)); return _parse_unformatted(s.ptr, s.ptr + len); } JSONNode JSONWorker::parse_unformatted(const json_string & json) json_throws(std::invalid_argument) { #if defined JSON_DEBUG || defined JSON_SAFE #ifndef JSON_NO_EXCEPTIONS JSON_ASSERT_SAFE((json[0] == JSON_TEXT('{')) || (json[0] == JSON_TEXT('[')), JSON_TEXT("Not JSON!"), throw std::invalid_argument(json_global(EMPTY_STD_STRING));); #else JSON_ASSERT_SAFE((json[0] == JSON_TEXT('{')) || (json[0] == JSON_TEXT('[')), JSON_TEXT("Not JSON!"), return JSONNode(JSON_NULL);); #endif #endif return _parse_unformatted(json.data(), json.data() + json.length()); } JSONNode JSONWorker::_parse_unformatted(const json_char * json, const json_char * const end) json_throws(std::invalid_argument) { #ifdef JSON_COMMENTS json_char firstchar = *json; json_string _comment; json_char * runner = (json_char*)json; if (json_unlikely(firstchar == JSON_TEMP_COMMENT_IDENTIFIER)){ //multiple comments will be consolidated into one newcomment: while(*(++runner) != JSON_TEMP_COMMENT_IDENTIFIER){ JSON_ASSERT(runner != end, JSON_TEXT("Removing white space failed")); _comment += *runner; } firstchar = *(++runner); //step past the trailing tag if (json_unlikely(firstchar == JSON_TEMP_COMMENT_IDENTIFIER)){ _comment += JSON_TEXT('\n'); goto newcomment; } } #else const json_char firstchar = *json; #endif switch (firstchar){ case JSON_TEXT('{'): case JSON_TEXT('['): #if defined JSON_DEBUG || defined JSON_SAFE if (firstchar == JSON_TEXT('[')){ if (json_unlikely(*(end - 1) != JSON_TEXT(']'))){ JSON_FAIL(JSON_TEXT("Missing final ]")); break; } } else { if (json_unlikely(*(end - 1) != JSON_TEXT('}'))){ JSON_FAIL(JSON_TEXT("Missing final }")); break; } } #endif #ifdef JSON_COMMENTS JSONNode foo(json_string(runner, end - runner)); foo.set_comment(_comment); return JSONNode(true, foo); //forces it to simply return the original interal, even with ref counting off #else return JSONNode(json_string(json, end - json)); #endif } JSON_FAIL(JSON_TEXT("Not JSON!")); #ifndef JSON_NO_EXCEPTIONS throw std::invalid_argument(json_global(EMPTY_STD_STRING)); #else return JSONNode(JSON_NULL); #endif } #endif #define QUOTECASE()\ case JSON_TEXT('\"'):\ while (*(++p) != JSON_TEXT('\"')){\ JSON_ASSERT_SAFE(*p, JSON_TEXT("Null terminator inside of a quotation"), return json_string::npos;);\ }\ break; #if defined(JSON_DEBUG) || defined(JSON_SAFE) #define NULLCASE(error)\ case JSON_TEXT('\0'):\ JSON_FAIL_SAFE(error, return json_string::npos;);\ break; #else #define NULLCASE(error) #endif #define BRACKET(left, right)\ case left: {\ size_t brac = 1;\ while (brac){\ switch (*(++p)){\ case right:\ --brac;\ break;\ case left:\ ++brac;\ break;\ QUOTECASE()\ NULLCASE(JSON_TEXT("Null terminator inside of a bracket"))\ }\ }\ break;}\ case right:\ return json_string::npos; #if defined(JSON_READ_PRIORITY) || defined(JSON_STREAM) #if (JSON_READ_PRIORITY == HIGH) && (!(defined(JSON_LESS_MEMORY))) #define FIND_NEXT_RELEVANT(ch, vt, po) JSONWorker::FindNextRelevant<ch>(vt, po) template<json_char ch> size_t JSONWorker::FindNextRelevant(const json_string & value_t, const size_t pos) json_nothrow { #else #define FIND_NEXT_RELEVANT(ch, vt, po) JSONWorker::FindNextRelevant(ch, vt, po) size_t JSONWorker::FindNextRelevant(json_char ch, const json_string & value_t, const size_t pos) json_nothrow { #endif json_string::const_iterator start = value_t.begin(); json_string::const_iterator e = value_t.end(); for (json_string::const_iterator p = value_t.begin() + pos; p != e; ++p){ if (json_unlikely(*p == ch)) return p - start; switch (*p){ BRACKET(JSON_TEXT('['), JSON_TEXT(']')) BRACKET(JSON_TEXT('{'), JSON_TEXT('}')) QUOTECASE() } }; return json_string::npos; } #endif #ifdef JSON_COMMENTS #define COMMENT_DELIMITER() *runner++ = JSON_TEMP_COMMENT_IDENTIFIER #define AND_RUNNER ,runner inline void SingleLineComment(const json_char * & p, const json_char * const end, json_char * & runner) json_nothrow { //It is okay to add two '\5' characters here because at minimun the # and '\n' are replaced, so it's at most the same size COMMENT_DELIMITER(); while((++p != end) && (*p != JSON_TEXT('\n'))){ *runner++ = *p; } COMMENT_DELIMITER(); } #else #define COMMENT_DELIMITER() (void)0 #define AND_RUNNER #endif #ifndef JSON_STRICT inline void SingleLineComment(const json_char * & p, const json_char * const end) json_nothrow { while((++p != end) && (*p != JSON_TEXT('\n'))); } #endif #if defined(JSON_LESS_MEMORY) && defined(JSON_READ_PRIORITY) #define PRIVATE_REMOVEWHITESPACE(T, value_t, escapeQuotes, len) private_RemoveWhiteSpace(T, value_t, escapeQuotes, len) json_char * private_RemoveWhiteSpace(bool T, const json_string & value_t, bool escapeQuotes, size_t & len) json_nothrow { #else #define PRIVATE_REMOVEWHITESPACE(T, value_t, escapeQuotes, len) private_RemoveWhiteSpace<T>(value_t, escapeQuotes, len) template<bool T> json_char * private_RemoveWhiteSpace(const json_string & value_t, bool escapeQuotes, size_t & len) json_nothrow { #endif json_char * result; json_char * runner = result = json_malloc<json_char>(value_t.length() + 1); //dealing with raw memory is faster than adding to a json_string JSON_ASSERT(result != 0, json_global(ERROR_OUT_OF_MEMORY)); const json_char * const end = value_t.data() + value_t.length(); for(const json_char * p = value_t.data(); p != end; ++p){ switch(*p){ case JSON_TEXT(' '): //defined as white space case JSON_TEXT('\t'): //defined as white space case JSON_TEXT('\n'): //defined as white space case JSON_TEXT('\r'): //defined as white space break; #ifndef JSON_STRICT case JSON_TEXT('/'): //a C comment if (*(++p) == JSON_TEXT('*')){ //a multiline comment if (T) COMMENT_DELIMITER(); while ((*(++p) != JSON_TEXT('*')) || (*(p + 1) != JSON_TEXT('/'))){ if(p == end){ COMMENT_DELIMITER(); goto endofrunner; } if (T) *runner++ = *p; } ++p; if (T) COMMENT_DELIMITER(); break; } //Should be a single line C comment, so let it fall through to use the bash comment stripper JSON_ASSERT_SAFE(*p == JSON_TEXT('/'), JSON_TEXT("stray / character, not quoted, or a comment"), goto endofrunner;); case JSON_TEXT('#'): //a bash comment if (T){ SingleLineComment(p, end AND_RUNNER); } else { SingleLineComment(p, end); } break; #endif case JSON_TEXT('\"'): //a quote *runner++ = JSON_TEXT('\"'); while(*(++p) != JSON_TEXT('\"')){ //find the end of the quotation, as white space is preserved within it if(p == end) goto endofrunner; switch(*p){ case JSON_TEXT('\\'): *runner++ = JSON_TEXT('\\'); if (escapeQuotes){ *runner++ = (*++p == JSON_TEXT('\"')) ? ascii_one() : *p; //an escaped quote will reak havoc will all of my searching functions, so change it into an illegal character in JSON for convertion later on } break; default: *runner++ = *p; break; } } //no break, let it fall through so that the trailing quote gets added default: JSON_ASSERT_SAFE((json_uchar)*p >= 32, JSON_TEXT("Invalid JSON character detected (lo)"), goto endofrunner;); JSON_ASSERT_SAFE((json_uchar)*p <= 126, JSON_TEXT("Invalid JSON character detected (hi)"), goto endofrunner;); *runner++ = *p; break; } } endofrunner: len = runner - result; return result; } #ifdef JSON_READ_PRIORITY json_char * JSONWorker::RemoveWhiteSpace(const json_string & value_t, size_t & len, bool escapeQuotes) json_nothrow { json_char * result = PRIVATE_REMOVEWHITESPACE(true, value_t, escapeQuotes, len); result[len] = JSON_TEXT('\0'); return result; } #endif json_char * JSONWorker::RemoveWhiteSpaceAndCommentsC(const json_string & value_t, bool escapeQuotes) json_nothrow { size_t len; json_char * result = PRIVATE_REMOVEWHITESPACE(false, value_t, escapeQuotes, len); result[len] = JSON_TEXT('\0'); return result; } json_string JSONWorker::RemoveWhiteSpaceAndComments(const json_string & value_t, bool escapeQuotes) json_nothrow { json_auto<json_char> s; size_t len; s.set(PRIVATE_REMOVEWHITESPACE(false, value_t, escapeQuotes, len)); return json_string(s.ptr, len); } #ifdef JSON_READ_PRIORITY /* These three functions analyze json_string literals and convert them into std::strings This includes dealing with special characters and utf characters */ #ifdef JSON_UNICODE inline json_uchar SurrogatePair(const json_uchar hi, const json_uchar lo) json_pure; inline json_uchar SurrogatePair(const json_uchar hi, const json_uchar lo) json_nothrow { JSON_ASSERT(sizeof(unsigned int) == 4, JSON_TEXT("size of unsigned int is not 32-bit")); JSON_ASSERT(sizeof(json_uchar) == 4, JSON_TEXT("size of json_char is not 32-bit")); return (((hi << 10) & 0x1FFC00) + 0x10000) | lo & 0x3FF; } void JSONWorker::UTF(const json_char * & pos, json_string & result, const json_char * const end) json_nothrow { JSON_ASSERT_SAFE(((long)end - (long)pos) > 4, JSON_TEXT("UTF will go out of bounds"), return;); json_uchar first = UTF8(pos, end); if (json_unlikely((first > 0xD800) && (first < 0xDBFF) && (*(pos + 1) == '\\') && (*(pos + 2) == 'u'))){ const json_char * original_pos = pos; //if the 2nd character is not correct I need to roll back the iterator pos += 2; json_uchar second = UTF8(pos, end); //surrogate pair, not two characters if (json_unlikely((second > 0xDC00) && (second < 0xDFFF))){ result += SurrogatePair(first, second); } else { pos = original_pos; } } else { result += first; } } #endif json_uchar JSONWorker::UTF8(const json_char * & pos, const json_char * const end) json_nothrow { JSON_ASSERT_SAFE(((long long)end - (long long)pos) > 4, JSON_TEXT("UTF will go out of bounds"), return JSON_TEXT('\0');); #ifdef JSON_UNICODE ++pos; json_uchar temp = Hex(pos) << 8; ++pos; return temp | Hex(pos); #else JSON_ASSERT(*(pos + 1) == JSON_TEXT('0'), JSON_TEXT("wide utf character (hihi)")); JSON_ASSERT(*(pos + 2) == JSON_TEXT('0'), JSON_TEXT("wide utf character (hilo)")); pos += 3; return Hex(pos); #endif } json_char JSONWorker::Hex(const json_char * & pos) json_nothrow { /* takes the numeric value of the next two characters and convert them \u0058 becomes 0x58 In case of \u, it's SpecialChar's responsibility to move past the first two chars as this method is also used for \x */ //First character json_uchar hi = *pos++ - 48; if (hi > 48){ //A-F don't immediately follow 0-9, so have to pull them down a little hi -= 39; } else if (hi > 9){ //neither do a-f hi -= 7; } //second character json_uchar lo = *pos - 48; if (lo > 48){ //A-F don't immediately follow 0-9, so have to pull them down a little lo -= 39; } else if (lo > 9){ //neither do a-f lo -= 7; } //combine them return (json_char)((hi << 4) | lo); } #ifndef JSON_STRICT inline json_char FromOctal(const json_char * & str, const json_char * const end) json_nothrow { JSON_ASSERT_SAFE(((long long)end - (long long)str) > 3, JSON_TEXT("Octal will go out of bounds"), return JSON_TEXT('\0');); str += 2; return (json_char)(((((json_uchar)(*(str - 2) - 48))) << 6) | (((json_uchar)(*(str - 1) - 48)) << 3) | ((json_uchar)(*str - 48))); } #endif void JSONWorker::SpecialChar(const json_char * & pos, const json_char * const end, json_string & res) json_nothrow { JSON_ASSERT_SAFE(pos != end, JSON_TEXT("Special char termantion"), return;); /* Since JSON uses forward slash escaping for special characters within strings, I have to convert these escaped characters into C characters */ switch(*pos){ case JSON_TEXT('\1'): //quote character (altered by RemoveWhiteSpace) res += JSON_TEXT('\"'); break; case JSON_TEXT('t'): //tab character res += JSON_TEXT('\t'); break; case JSON_TEXT('n'): //newline character res += JSON_TEXT('\n'); break; case JSON_TEXT('r'): //return character res += JSON_TEXT('\r'); break; case JSON_TEXT('\\'): //backslash res += JSON_TEXT('\\'); break; case JSON_TEXT('/'): //forward slash res += JSON_TEXT('/'); break; case JSON_TEXT('b'): //backspace res += JSON_TEXT('\b'); break; case JSON_TEXT('f'): //formfeed res += JSON_TEXT('\f'); break; case JSON_TEXT('v'): //vertical tab res += JSON_TEXT('\v'); break; case JSON_TEXT('u'): //utf character #ifdef JSON_UNICODE UTF(pos, res, end); #else res += UTF8(pos, end); #endif break; #ifndef JSON_STRICT case JSON_TEXT('x'): //hexidecimal ascii code JSON_ASSERT_SAFE(((long long)end - (long long)pos) > 3, JSON_TEXT("Hex will go out of bounds"), res += JSON_TEXT('\0'); return;); res += Hex(++pos); break; #ifdef __GNUC__ case JSON_TEXT('0') ... JSON_TEXT('7'): #else //octal encoding case JSON_TEXT('0'): case JSON_TEXT('1'): case JSON_TEXT('2'): case JSON_TEXT('3'): case JSON_TEXT('4'): case JSON_TEXT('5'): case JSON_TEXT('6'): case JSON_TEXT('7'): #endif res += FromOctal(pos, end); break; default: res += *pos; break; #elif defined(JSON_DEBUG) default: JSON_FAIL(JSON_TEXT("Unsupported escaped character")); break; #endif } } #ifdef JSON_LESS_MEMORY inline void doflag(const internalJSONNode * flag, bool which, bool x) json_nothrow { if (json_likely(which)){ flag -> _name_encoded = x; } else { flag -> _string_encoded = x; } } json_string JSONWorker::FixString(const json_string & value_t, const internalJSONNode * flag, bool which) json_nothrow { #define setflag(x) doflag(flag, which, x) #else json_string JSONWorker::FixString(const json_string & value_t, bool & flag) json_nothrow { #define setflag(x) flag = x #endif //Do things like unescaping setflag(false); json_string res; res.reserve(value_t.length()); //since it goes one character at a time, want to reserve it first so that it doens't have to reallocating const json_char * const end = value_t.data() + value_t.length(); for(const json_char * p = value_t.data(); p != end; ++p){ switch (*p){ case JSON_TEXT('\\'): setflag(true); SpecialChar(++p, end, res); break; default: res += *p; break; } } shrinkString(res); //because this is actually setting something to be stored, shrink it it need be return res; } #endif #ifdef JSON_UNICODE #ifdef JSON_ESCAPE_WRITES json_string JSONWorker::toSurrogatePair(json_uchar C) json_nothrow { JSON_ASSERT(sizeof(unsigned int) == 4, JSON_TEXT("size of unsigned int is not 32-bit")); JSON_ASSERT(sizeof(unsigned short) == 2, JSON_TEXT("size of unsigned short is not 16-bit")); JSON_ASSERT(sizeof(json_uchar) == 4, JSON_TEXT("json_char is not 32-bit")); //Compute the high surrogate unsigned short HiSurrogate = 0xD800 | (((unsigned short)((unsigned int)((C >> 16) & 31)) - 1) << 6) | ((unsigned short)C) >> 10; //compute the low surrogate unsigned short LoSurrogate = (unsigned short) (0xDC00 | ((unsigned short)C) & 1023); json_string res; res += toUTF8(HiSurrogate); res += toUTF8(LoSurrogate); return res; } #endif #endif #ifdef JSON_ESCAPE_WRITES json_string JSONWorker::toUTF8(json_uchar p) json_nothrow { #ifdef JSON_UNICODE if (json_unlikely(p > 0xFFFF)) return toSurrogatePair(p); #endif json_string res(JSON_TEXT("\\u")); #ifdef JSON_UNICODE START_MEM_SCOPE json_uchar hihi = ((p & 0xF000) >> 12) + 48; if (hihi > 57) hihi += 7; //A-F don't immediately follow 0-9, so have to further adjust those json_uchar hilo = ((p & 0x0F00) >> 8) + 48; if (hilo > 57) hilo += 7; //A-F don't immediately follow 0-9, so have to further adjust those res += hihi; res += hilo; END_MEM_SCOPE json_uchar hi = ((p & 0x00F0) >> 4) + 48; #else res += JSON_TEXT("00"); json_uchar hi = (p >> 4) + 48; #endif //convert the character to be escaped into two digits between 0 and 15 if (hi > 57) hi += 7; //A-F don't immediately follow 0-9, so have to further adjust those json_uchar lo = (p & 0x000F) + 48; if (lo > 57) lo += 7; //A-F don't immediately follow 0-9, so have to further adjust those res += hi; res += lo; return res; } #endif void JSONWorker::UnfixString(const json_string & value_t, bool flag, json_string & res) json_nothrow { if (!flag){ res += value_t; return; } //Re-escapes a json_string so that it can be written out into a JSON file const json_char * const end = value_t.data() + value_t.length(); for(const json_char * p = value_t.data(); p != end; ++p){ switch(*p){ case JSON_TEXT('\"'): //quote character res += JSON_TEXT("\\\""); break; case JSON_TEXT('\\'): //backslash res += JSON_TEXT("\\\\"); break; #ifdef JSON_ESCAPE_WRITES case JSON_TEXT('\t'): //tab character res += JSON_TEXT("\\t"); break; case JSON_TEXT('\n'): //newline character res += JSON_TEXT("\\n"); break; case JSON_TEXT('\r'): //return character res += JSON_TEXT("\\r"); break; case JSON_TEXT('/'): //forward slash res += JSON_TEXT("\\/"); break; case JSON_TEXT('\b'): //backspace res += JSON_TEXT("\\b"); break; case JSON_TEXT('\f'): //formfeed res += JSON_TEXT("\\f"); break; default: { if (json_unlikely(((json_uchar)(*p) < 32) || ((json_uchar)(*p) > 126))){ res += toUTF8((json_uchar)(*p)); } else { res += *p; } } break; #else default: res += *p; break; #endif } } } #ifdef JSON_READ_PRIORITY //Create a childnode #ifdef JSON_COMMENTS #define ARRAY_PARAM bool array //Just to supress warnings #else #define ARRAY_PARAM bool #endif inline void JSONWorker::NewNode(const internalJSONNode * parent, const json_string & name, const json_string & value, ARRAY_PARAM) json_nothrow { #ifdef JSON_COMMENTS JSONNode * child; START_MEM_SCOPE json_string _comment; START_MEM_SCOPE const json_char * runner = ((array) ? value.data() : name.data()); #ifdef JSON_DEBUG const json_char * const end = runner + value.length(); #endif if (json_unlikely(*runner == JSON_TEMP_COMMENT_IDENTIFIER)){ //multiple comments will be consolidated into one size_t count; const json_char * start; newcomment: count = 0; start = runner + 1; while(*(++runner) != JSON_TEMP_COMMENT_IDENTIFIER){ JSON_ASSERT(runner != end, JSON_TEXT("Removing white space failed")); ++count; } if (count) _comment += json_string(start, count); if (json_unlikely(*(++runner) == JSON_TEMP_COMMENT_IDENTIFIER)){ //step past the trailing tag _comment += JSON_TEXT('\n'); goto newcomment; } } internalJSONNode * myinternal; if (array){ myinternal = internalJSONNode::newInternal(name, runner); } else { myinternal = internalJSONNode::newInternal(++runner, value); } child = JSONNode::newJSONNode(myinternal); END_MEM_SCOPE child -> set_comment(_comment); END_MEM_SCOPE const_cast<internalJSONNode*>(parent) -> CHILDREN -> push_back(child); //attach it to the parent node #else if (name.empty()){ const_cast<internalJSONNode*>(parent) -> CHILDREN -> push_back(JSONNode::newJSONNode(internalJSONNode::newInternal(name, value))); //attach it to the parent node } else { const_cast<internalJSONNode*>(parent) -> CHILDREN -> push_back(JSONNode::newJSONNode(internalJSONNode::newInternal(json_string(name.begin() + 1, name.end()), value))); //attach it to the parent node } #endif } //Create a subarray void JSONWorker::DoArray(const internalJSONNode * parent, const json_string & value_t) json_nothrow { //This takes an array and creates nodes out of them JSON_ASSERT(!value_t.empty(), JSON_TEXT("DoArray is empty")); JSON_ASSERT_SAFE(value_t[0] == JSON_TEXT('['), JSON_TEXT("DoArray is not an array"), parent -> Nullify(); return;); if (json_unlikely(value_t.length() <= 2)) return; // just a [] (blank array) #ifdef JSON_SAFE json_string newValue; //share this so it has a reserved buffer #endif size_t starting = 1; //ignore the [ //Not sure what's in the array, so we have to use commas for(size_t ending = FIND_NEXT_RELEVANT(JSON_TEXT(','), value_t, 1); ending != json_string::npos; ending = FIND_NEXT_RELEVANT(JSON_TEXT(','), value_t, starting)){ #ifdef JSON_SAFE newValue.assign(value_t.begin() + starting, value_t.begin() + ending); JSON_ASSERT_SAFE(FIND_NEXT_RELEVANT(JSON_TEXT(':'), newValue, 0) == json_string::npos, JSON_TEXT("Key/Value pairs are not allowed in arrays"), parent -> Nullify(); return;); NewNode(parent, json_global(EMPTY_JSON_STRING), newValue, true); #else NewNode(parent, json_global(EMPTY_JSON_STRING), json_string(value_t.begin() + starting, value_t.begin() + ending), true); #endif starting = ending + 1; } //since the last one will not find the comma, we have to add it here, but ignore the final ] #ifdef JSON_SAFE newValue.assign(value_t.begin() + starting, value_t.end() - 1); JSON_ASSERT_SAFE(FIND_NEXT_RELEVANT(JSON_TEXT(':'), newValue, 0) == json_string::npos, JSON_TEXT("Key/Value pairs are not allowed in arrays"), parent -> Nullify(); return;); NewNode(parent, json_global(EMPTY_JSON_STRING), newValue, true); #else NewNode(parent, json_global(EMPTY_JSON_STRING), json_string(value_t.begin() + starting, value_t.end() - 1), true); #endif } //Create all child nodes void JSONWorker::DoNode(const internalJSONNode * parent, const json_string & value_t) json_nothrow { //This take a node and creates its members and such JSON_ASSERT(!value_t.empty(), JSON_TEXT("DoNode is empty")); JSON_ASSERT_SAFE(value_t[0] == JSON_TEXT('{'), JSON_TEXT("DoNode is not an node"), parent -> Nullify(); return;); if (json_unlikely(value_t.length() <= 2)) return; // just a {} (blank node) size_t name_ending = FIND_NEXT_RELEVANT(JSON_TEXT(':'), value_t, 1); //find where the name ends JSON_ASSERT_SAFE(name_ending != json_string::npos, JSON_TEXT("Missing :"), parent -> Nullify(); return;); json_string name(value_t.begin() + 1, value_t.begin() + name_ending - 1); //pull the name out for (size_t value_ending = FIND_NEXT_RELEVANT(JSON_TEXT(','), value_t, name_ending), //find the end of the value name_starting = 1; //ignore the { value_ending != json_string::npos; value_ending = FIND_NEXT_RELEVANT(JSON_TEXT(','), value_t, name_ending)){ NewNode(parent, name, json_string(value_t.begin() + name_ending + 1, value_t.begin() + value_ending), false); name_starting = value_ending + 1; name_ending = FIND_NEXT_RELEVANT(JSON_TEXT(':'), value_t, name_starting); JSON_ASSERT_SAFE(name_ending != json_string::npos, JSON_TEXT("Missing :"), parent -> Nullify(); return;); name.assign(value_t.begin() + name_starting, value_t.begin() + name_ending - 1); } //since the last one will not find the comma, we have to add it here NewNode(parent, name, json_string(value_t.begin() + name_ending + 1, value_t.end() - 1), false); } #endif
36.068351
207
0.656834
shreyasvj25
4ba1e0432e36963c14c0621ea03e5c85e3f9de82
15,484
cpp
C++
windows/advcore/gdiplus/engine/text/otls/chaining.cpp
npocmaka/Windows-Server-2003
5c6fe3db626b63a384230a1aa6b92ac416b0765f
[ "Unlicense" ]
17
2020-11-13T13:42:52.000Z
2021-09-16T09:13:13.000Z
windows/advcore/gdiplus/engine/text/otls/chaining.cpp
sancho1952007/Windows-Server-2003
5c6fe3db626b63a384230a1aa6b92ac416b0765f
[ "Unlicense" ]
2
2020-10-19T08:02:06.000Z
2020-10-19T08:23:18.000Z
windows/advcore/gdiplus/engine/text/otls/chaining.cpp
sancho1952007/Windows-Server-2003
5c6fe3db626b63a384230a1aa6b92ac416b0765f
[ "Unlicense" ]
14
2020-11-14T09:43:20.000Z
2021-08-28T08:59:57.000Z
/*********************************************************************** ************************************************************************ * * ******** CHAINING.CPP ******** * * Open Type Layout Services Library Header File * * This module deals with chaining context-based substitution lookups * * Copyright 1997 - 1998. Microsoft Corporation. * * ************************************************************************ ***********************************************************************/ #include "pch.h" /***********************************************************************/ otlErrCode otlChainingLookup::apply ( otlTag tagTable, otlList* pliCharMap, otlList* pliGlyphInfo, otlResourceMgr& resourceMgr, USHORT grfLookupFlags, long lParameter, USHORT nesting, const otlMetrics& metr, otlList* pliduGlyphAdv, otlList* pliplcGlyphPlacement, USHORT iglIndex, USHORT iglAfterLast, USHORT* piglNextGlyph, // out: next glyph otlSecurityData sec ) { if (!isValid()) return OTL_NOMATCH; assert(pliGlyphInfo->dataSize() == sizeof(otlGlyphInfo)); assert(pliCharMap->dataSize() == sizeof(USHORT)); assert(iglAfterLast > iglIndex); assert(iglAfterLast <= pliGlyphInfo->length()); otlGlyphInfo* pGlyphInfo = getOtlGlyphInfo(pliGlyphInfo, iglIndex); switch(format()) //sec: format() works since checked in LookupFormat { case(1): // simple { otlChainSubTable simpleChainContext = otlChainSubTable(pbTable,sec); if (!simpleChainContext.isValid()) return OTL_NOMATCH; short index = simpleChainContext.coverage(sec).getIndex(pGlyphInfo->glyph,sec); if (index < 0) { return OTL_NOMATCH; } if (index >= simpleChainContext.ruleSetCount()) { return OTL_NOMATCH; //OTL_ERR_BAD_FONT_TABLE; } otlChainRuleSetTable ruleSet = simpleChainContext.ruleSet(index,sec); // get GDEF otlSecurityData secgdef; const BYTE *pbgdef; resourceMgr.getOtlTable(OTL_GDEF_TAG,&pbgdef,&secgdef); otlGDefHeader gdef = otlGDefHeader(pbgdef,secgdef); // start checking contextes USHORT cRules = ruleSet.ruleCount(); bool match = false; for (USHORT iRule = 0; iRule < cRules && !match; ++iRule) { match = true; otlChainRuleTable rule = ruleSet.rule(iRule,sec); if (!rule.isValid()) { match = false; } const USHORT cBacktrackGlyphs = rule.backtrackGlyphCount(); const USHORT cLookaheadGlyphs = rule.lookaheadGlyphCount(); const USHORT cInputGlyphs = rule.inputGlyphCount(); // a simple check so we don't waste time if (iglIndex < cBacktrackGlyphs || iglIndex + cInputGlyphs > iglAfterLast) { match = false; } short igl = iglIndex; for (USHORT iGlyphBack = 0; iGlyphBack < cBacktrackGlyphs && match; ++iGlyphBack) { igl = NextGlyphInLookup(pliGlyphInfo, grfLookupFlags, gdef, secgdef, igl - 1, otlBackward); if (igl < 0 || getOtlGlyphInfo(pliGlyphInfo, igl)->glyph != rule.backtrack(iGlyphBack)) { match = false; } } igl = iglIndex; for (USHORT iGlyphInput = 1; iGlyphInput < cInputGlyphs && match; ++iGlyphInput) { igl = NextGlyphInLookup(pliGlyphInfo, grfLookupFlags, gdef, secgdef, igl + 1, otlForward); if (igl >= iglAfterLast || getOtlGlyphInfo(pliGlyphInfo, igl)->glyph != rule.input(iGlyphInput)) { match = false; } } // remember the next glyph in lookup here *piglNextGlyph = NextGlyphInLookup(pliGlyphInfo, grfLookupFlags, gdef, secgdef, igl + 1, otlForward); // igl: stays the same USHORT iglUBound = pliGlyphInfo->length(); for (USHORT iGlyphForward = 0; iGlyphForward < cLookaheadGlyphs && match; ++iGlyphForward) { igl = NextGlyphInLookup(pliGlyphInfo, grfLookupFlags, gdef, secgdef, igl + 1, otlForward); if (igl >= iglUBound || getOtlGlyphInfo(pliGlyphInfo, igl)->glyph != rule.lookahead(iGlyphForward)) { match = false; } } if (match) { return applyContextLookups (rule.lookupRecords(), tagTable, pliCharMap, pliGlyphInfo, resourceMgr, grfLookupFlags, lParameter, nesting, metr, pliduGlyphAdv, pliplcGlyphPlacement, iglIndex, *piglNextGlyph, piglNextGlyph,sec); } } return OTL_NOMATCH; } case(2): // class-based { otlChainClassSubTable classChainContext = otlChainClassSubTable(pbTable,sec); if (!classChainContext.isValid()) return OTL_NOMATCH; short index = classChainContext.coverage(sec).getIndex(pGlyphInfo->glyph,sec); if (index < 0) { return OTL_NOMATCH; } otlClassDef backClassDef = classChainContext.backtrackClassDef(sec); otlClassDef inputClassDef = classChainContext.inputClassDef(sec); otlClassDef aheadClassDef = classChainContext.lookaheadClassDef(sec); USHORT indexClass = inputClassDef.getClass(pGlyphInfo->glyph,sec); if (indexClass >= classChainContext.ruleSetCount()) { return OTL_NOMATCH; //OTL_ERR_BAD_FONT_TABLE; } otlChainClassRuleSetTable ruleSet = classChainContext.ruleSet(indexClass,sec); if (ruleSet.isNull()) { return OTL_NOMATCH; } // get GDEF otlSecurityData secgdef; const BYTE *pbgdef; resourceMgr.getOtlTable(OTL_GDEF_TAG,&pbgdef,&secgdef); otlGDefHeader gdef = otlGDefHeader(pbgdef,secgdef); // start checking contextes USHORT cRules = ruleSet.ruleCount(); bool match = false; for (USHORT iRule = 0; iRule < cRules && !match; ++iRule) { otlChainClassRuleTable rule = ruleSet.rule(iRule,sec); short igl; match = true; const USHORT cBacktrackGlyphs = rule.backtrackClassCount(); const USHORT cInputGlyphs = rule.inputClassCount(); const USHORT cLookaheadGlyphs = rule.lookaheadClassCount(); // a simple check so we don't waste time if (iglIndex < cBacktrackGlyphs || iglIndex + cInputGlyphs > iglAfterLast) { match = false; } igl = iglIndex; for (USHORT iGlyphBack = 0; iGlyphBack < cBacktrackGlyphs && match; ++iGlyphBack) { igl = NextGlyphInLookup(pliGlyphInfo, grfLookupFlags, gdef, secgdef, igl - 1, otlBackward); if (igl < 0 || backClassDef .getClass(getOtlGlyphInfo(pliGlyphInfo, igl)->glyph,sec) != rule.backtrackClass(iGlyphBack)) { match = false; } } igl = iglIndex; for (USHORT iGlyphInput = 1; iGlyphInput < cInputGlyphs && match; ++iGlyphInput) { igl = NextGlyphInLookup(pliGlyphInfo, grfLookupFlags, gdef, secgdef, igl + 1, otlForward); if (igl >= iglAfterLast || inputClassDef .getClass(getOtlGlyphInfo(pliGlyphInfo, igl)->glyph,sec) != rule.inputClass(iGlyphInput)) { match = false; } } // remember the next glyph in lookup here *piglNextGlyph = NextGlyphInLookup(pliGlyphInfo, grfLookupFlags, gdef, secgdef, igl + 1, otlForward); // igl: stays the same USHORT iglUBound = pliGlyphInfo->length(); for (USHORT iGlyphForward = 0; iGlyphForward < cLookaheadGlyphs && match; ++iGlyphForward) { igl = NextGlyphInLookup(pliGlyphInfo, grfLookupFlags, gdef, secgdef, igl + 1, otlForward); if (igl >= iglUBound || aheadClassDef .getClass(getOtlGlyphInfo(pliGlyphInfo, igl)->glyph,sec) != rule.lookaheadClass(iGlyphForward)) { match = false; } } if (match) { return applyContextLookups (rule.lookupRecords(), tagTable, pliCharMap, pliGlyphInfo, resourceMgr, grfLookupFlags,lParameter, nesting, metr, pliduGlyphAdv, pliplcGlyphPlacement, iglIndex,*piglNextGlyph, piglNextGlyph,sec); } } return OTL_NOMATCH; } case(3): // coverage-based { otlChainCoverageSubTable coverageChainContext = otlChainCoverageSubTable(pbTable,sec); if (!coverageChainContext.isValid()) return OTL_NOMATCH; bool match = true; const USHORT cBacktrackGlyphs = coverageChainContext.backtrackCoverageCount(); const USHORT cInputGlyphs = coverageChainContext.inputCoverageCount(); const USHORT cLookaheadGlyphs = coverageChainContext.lookaheadCoverageCount(); // a simple check so we don't waste time if (iglIndex < cBacktrackGlyphs || iglIndex + cInputGlyphs > iglAfterLast) { match = false; } // get GDEF otlSecurityData secgdef; const BYTE *pbgdef; resourceMgr.getOtlTable(OTL_GDEF_TAG,&pbgdef,&secgdef); otlGDefHeader gdef = otlGDefHeader(pbgdef,secgdef); short igl = iglIndex; for (USHORT iGlyphBack = 0; iGlyphBack < cBacktrackGlyphs && match; ++iGlyphBack) { igl = NextGlyphInLookup(pliGlyphInfo, grfLookupFlags, gdef, secgdef, igl - 1, otlBackward); if (igl < 0 || coverageChainContext.backtrackCoverage(iGlyphBack,sec) .getIndex(getOtlGlyphInfo(pliGlyphInfo, igl)->glyph,sec) < 0) { match = false; } } igl = iglIndex; for (USHORT iGlyphInput = 0; iGlyphInput < cInputGlyphs && match; ++iGlyphInput) { if (igl >= iglAfterLast || coverageChainContext.inputCoverage(iGlyphInput,sec) .getIndex(getOtlGlyphInfo(pliGlyphInfo, igl)->glyph,sec) < 0) { match = false; } else { igl = NextGlyphInLookup(pliGlyphInfo, grfLookupFlags, gdef, secgdef, igl + 1, otlForward); } } *piglNextGlyph = igl; // igl: stays the same USHORT iglUBound = pliGlyphInfo->length(); for (USHORT iGlyphForward = 0; iGlyphForward < cLookaheadGlyphs && match; ++iGlyphForward) { if (igl >= iglUBound || coverageChainContext.lookaheadCoverage(iGlyphForward,sec) .getIndex(getOtlGlyphInfo(pliGlyphInfo, igl)->glyph,sec) < 0) { match = false; } else { igl = NextGlyphInLookup(pliGlyphInfo, grfLookupFlags, gdef, secgdef, igl + 1, otlForward); } } if (match) { return applyContextLookups (coverageChainContext.lookupRecords(), tagTable, pliCharMap, pliGlyphInfo, resourceMgr, grfLookupFlags,lParameter, nesting, metr, pliduGlyphAdv, pliplcGlyphPlacement, iglIndex, *piglNextGlyph, piglNextGlyph,sec); } return OTL_NOMATCH; } default: //Unknown format, don't do anything return OTL_NOMATCH; //OTL_BAS_FONT_TABLE } }
38.807018
92
0.432834
npocmaka
4ba648fbff3e4f2cfb1f3932ec829a3dd136f4bc
1,642
cpp
C++
Online Judges/LightOJ/1044 - Palindrome Partitioning.cpp
akazad13/competitive-programming
5cbb67d43ad8d5817459043bcccac3f68d9bc688
[ "MIT" ]
null
null
null
Online Judges/LightOJ/1044 - Palindrome Partitioning.cpp
akazad13/competitive-programming
5cbb67d43ad8d5817459043bcccac3f68d9bc688
[ "MIT" ]
null
null
null
Online Judges/LightOJ/1044 - Palindrome Partitioning.cpp
akazad13/competitive-programming
5cbb67d43ad8d5817459043bcccac3f68d9bc688
[ "MIT" ]
null
null
null
#include<iostream> #include<bits/stdc++.h> using namespace std; #define rep(i,p,n) for( i = p; i<n;i++) #define lld long long int #define Clear(a,b) memset(a,b,sizeof(a)) template<class T>inline bool read(T &x) { int c=getchar(); int sgn=1; while(~c&&c<'0'||c>'9') { if(c=='-')sgn=-1; c=getchar(); } for(x=0; ~c&&'0'<=c&&c<='9'; c=getchar())x=x*10+c-'0'; x*=sgn; return ~c; } /*****************************************************/ char str[1002]; int dp[1002]; bool ispalindrome[1002][1002]; int solve() { int len = strlen(str); for (int i=0; i<len; i++) { ispalindrome[i][i] = true; } for (int k=2; k<=len; k++) { for (int i=0; i<len-k+1; i++) { int j = i+k-1; // Set ending index if (k == 2) ispalindrome[i][j] = (str[i] == str[j]); else ispalindrome[i][j] = (str[i] == str[j]) && ispalindrome[i+1][j-1]; } } for (int i=0; i<len; i++) { if(ispalindrome[0][i]==1) dp[i] = 1; else { dp[i] = INT_MAX; for(int j=0;j<i;j++) { if(ispalindrome[j+1][i] == true && 1+dp[j]<dp[i]) dp[i]=1+dp[j]; } } } return dp[len-1]; } int main() { //freopen("input.txt","r",stdin); //freopen("out.txt","w",stdout); int test,i,j,Case,n,m; char temp[10]; read(test); rep(Case,1,test+1) { gets(str); int ret = solve(); printf("Case %d: %d\n",Case,ret); } return 0; }
18.244444
82
0.416565
akazad13
4ba8c43e4bd8351c1a7fd1a24491b9e32d5d43ce
1,749
cc
C++
trunk/third_party/webrtc/video_engine/internal/video_engine.cc
goddino/libjingle
9516bee51c73af4c3082e74b88ed1198a0eb2bb1
[ "BSL-1.0", "BSD-3-Clause" ]
7
2015-08-06T01:46:07.000Z
2020-10-20T09:14:58.000Z
trunk/third_party/webrtc/video_engine/internal/video_engine.cc
goddino/libjingle
9516bee51c73af4c3082e74b88ed1198a0eb2bb1
[ "BSL-1.0", "BSD-3-Clause" ]
null
null
null
trunk/third_party/webrtc/video_engine/internal/video_engine.cc
goddino/libjingle
9516bee51c73af4c3082e74b88ed1198a0eb2bb1
[ "BSL-1.0", "BSD-3-Clause" ]
16
2015-01-08T01:47:24.000Z
2022-02-25T06:06:06.000Z
/* * Copyright (c) 2013 The WebRTC project authors. All Rights Reserved. * * Use of this source code is governed by a BSD-style license * that can be found in the LICENSE file in the root of the source * tree. An additional intellectual property rights grant can be found * in the file PATENTS. All contributing project authors may * be found in the AUTHORS file in the root of the source tree. */ #include "webrtc/video_engine/new_include/video_engine.h" #include <cassert> #include "webrtc/video_engine/include/vie_base.h" #include "webrtc/video_engine/internal/video_call.h" #include "webrtc/video_engine/vie_defines.h" namespace webrtc { namespace internal { class VideoEngine : public newapi::VideoEngine { public: explicit VideoEngine(const newapi::VideoEngineConfig& engine_config) : config_(engine_config) { video_engine_ = webrtc::VideoEngine::Create(); assert(video_engine_ != NULL); ViEBase* video_engine_base = ViEBase::GetInterface(video_engine_); assert(video_engine_base != NULL); if (video_engine_base->Init() != 0) { abort(); } video_engine_base->Release(); } virtual ~VideoEngine() { webrtc::VideoEngine::Delete(video_engine_); } virtual newapi::VideoCall* CreateCall(newapi::Transport* transport) OVERRIDE { return new VideoCall(video_engine_, transport); } private: newapi::VideoEngineConfig config_; webrtc::VideoEngine* video_engine_; DISALLOW_COPY_AND_ASSIGN(VideoEngine); }; } // internal namespace newapi { VideoEngine* VideoEngine::Create(const VideoEngineConfig& engine_config) { return new internal::VideoEngine(engine_config); } const char* Version() { return WEBRTC_SVNREVISION " (" BUILDINFO ")"; } } // newapi } // webrtc
29.15
80
0.736421
goddino
4baa81884e5b02233b0d352b352d4759631cd839
3,258
cpp
C++
sdl2/lib/sdl2/sdl-display.cpp
leocov-dev/lc-esp32-sprinkler
816d06bbe7d3a30b8d3d79167dc1b3481ee4261b
[ "MIT" ]
1
2021-01-10T16:06:02.000Z
2021-01-10T16:06:02.000Z
sdl2/lib/sdl2/sdl-display.cpp
leocov-dev/lc-esp32-sprinkler
816d06bbe7d3a30b8d3d79167dc1b3481ee4261b
[ "MIT" ]
null
null
null
sdl2/lib/sdl2/sdl-display.cpp
leocov-dev/lc-esp32-sprinkler
816d06bbe7d3a30b8d3d79167dc1b3481ee4261b
[ "MIT" ]
null
null
null
#include "sdl-display.hpp" #include <SDL.h> #include <SDL2_gfxPrimitives.h> #include <iostream> #include "sdl-constants.hpp" #include "sdl-utils.hpp" #include "sdl-window-icon.hpp" sprinkler::sdl::SDLDisplay::SDLDisplay(int height, int width, gfx::Point position) : Display(width, height) { window_ = std::unique_ptr<SDL_Window, SDLWindowDeleter>( SDL_CreateWindow("lcSprinkler", position.x, position.y, width * kDisplayScaleFactor, height * kDisplayScaleFactor, SDL_WINDOW_SHOWN)); if (window_ == nullptr) { std::cerr << "Unable to initialize window\n"; exit(-1); } auto icon_surface = std::unique_ptr<SDL_Surface, SDLSurfaceDeleter>(SDL_CreateRGBSurfaceFrom( (void*)window_icon_pixels, 16, 16, 16, 16 * 2, 0x0f00, 0x00f0, 0x000f, 0xf000)); SDL_SetWindowIcon(window_.get(), icon_surface.get()); renderer_ = std::unique_ptr<SDL_Renderer, SDLRendererDeleter>( SDL_CreateRenderer(window_.get(), -1, SDL_RENDERER_ACCELERATED)); // this established the actual hardware OLED pixel accurate dimensions regardless of the window // size SDL_RenderSetLogicalSize(renderer_.get(), width, height); SDL_SetRenderDrawBlendMode(renderer_.get(), SDL_BLENDMODE_BLEND); if (!renderer_) { std::cerr << "Unable to initialize renderer\n"; exit(-1); } } void sprinkler::sdl::SDLDisplay::Clear() { SetRenderDrawColor(renderer_.get(), gfx::Color::K_WHITE); SDL_RenderClear(renderer_.get()); } void sprinkler::sdl::SDLDisplay::Refresh() { SDL_SetRenderDrawColor(renderer_.get(), 200, 200, 200, 128); if (kDebug) { SDL_RenderDrawLine(renderer_.get(), 0, 16, 128, 16); } SDL_RenderPresent(renderer_.get()); } void sprinkler::sdl::SDLDisplay::DrawPixelInternal(const gfx::Point& point, const gfx::Color& color) const { SetRenderDrawColor(renderer_.get(), color); SDL_RenderDrawPoint(renderer_.get(), point.x, point.y); } void sprinkler::sdl::SDLDisplay::DrawRectInternal(const gfx::Rect& rect, const gfx::Color& color) const { SDL_Rect sdl_rect = FromRect(rect); SetRenderDrawColor(renderer_.get(), color); SDL_RenderDrawRect(renderer_.get(), &sdl_rect); } void sprinkler::sdl::SDLDisplay::FillRectInternal(const gfx::Rect& rect, const gfx::Color& color) const { SDL_Rect sdl_rect = FromRect(rect); SetRenderDrawColor(renderer_.get(), color); SDL_RenderFillRect(renderer_.get(), &sdl_rect); } void sprinkler::sdl::SDLDisplay::DrawCircleInternal(const gfx::Point& center, int radius, const gfx::Color& color) const { circleColor(renderer_.get(), center.x, center.y, radius, HexFromColor(color)); } void sprinkler::sdl::SDLDisplay::FillCircleInternal(const gfx::Point& center, int radius, const gfx::Color& color) const { filledCircleColor(renderer_.get(), center.x, center.y, radius, HexFromColor(color)); } SDL_Window* sprinkler::sdl::SDLDisplay::GetWindow() { return window_.get(); }
36.2
97
0.645795
leocov-dev
4baaf8e374e98d7b5b1f671305d80b1b78af8432
5,490
hpp
C++
include/sph/kernel/computeFindNeighbors.hpp
j-piccinali/SPH-EXA_mini-app
c3ba4d37f2edf433710d5c0bc2362ec35e75df32
[ "MIT" ]
14
2019-03-18T12:51:43.000Z
2021-11-09T14:40:36.000Z
include/sph/kernel/computeFindNeighbors.hpp
j-piccinali/SPH-EXA_mini-app
c3ba4d37f2edf433710d5c0bc2362ec35e75df32
[ "MIT" ]
41
2019-10-08T19:53:55.000Z
2021-11-23T06:56:03.000Z
include/sph/kernel/computeFindNeighbors.hpp
j-piccinali/SPH-EXA_mini-app
c3ba4d37f2edf433710d5c0bc2362ec35e75df32
[ "MIT" ]
8
2019-06-20T07:11:52.000Z
2021-10-05T13:44:07.000Z
#pragma once #include "../cuda/cudaParticlesData.cuh" #include "../lookupTables.hpp" namespace sphexa { namespace sph { namespace cuda { template <typename T> __global__ void findNeighbors(const cuda::DeviceLinearOctree<T> o, const int *clist, const int n, const T *x, const T *y, const T *z, const T *h, const T displx, const T disply, const T displz, const int max, const int may, const int maz, const int ngmax, int *neighbors, int *neighborsCount); } namespace kernels { template <typename T> CUDA_DEVICE_HOST_FUN inline T normalize(T d, T min, T max) { return (d - min) / (max - min); } template <typename T> CUDA_DEVICE_HOST_FUN inline void findNeighborsDispl(const int pi, const int *clist, const T *x, const T *y, const T *z, const T *h, const T displx, const T disply, const T displz, const int ngmax, int *neighbors, int *neighborsCount, // The linear tree const int *o_cells, const int *o_ncells, const int *o_localPadding, const int *o_localParticleCount, const T *o_xmin, const T *o_xmax, const T *o_ymin, const T *o_ymax, const T *o_zmin, const T *o_zmax) { const int i = clist[pi]; // // 64 is not enough... Depends on the bucket size and h... // // This can be created and stored on the GPU directly. // // For a fixed problem and size, if it works then it will always work int collisionsCount = 0; int collisionNodes[256]; const T xi = x[i] + displx; const T yi = y[i] + disply; const T zi = z[i] + displz; const T ri = 2.0 * h[i]; constexpr int nX = 2; constexpr int nY = 2; constexpr int nZ = 2; int stack[64]; int stackptr = 0; stack[stackptr++] = -1; int node = 0; do { if (o_ncells[node] == 8) { int mix = std::max((int)(normalize(xi - ri, o_xmin[node], o_xmax[node]) * nX), 0); int miy = std::max((int)(normalize(yi - ri, o_ymin[node], o_ymax[node]) * nY), 0); int miz = std::max((int)(normalize(zi - ri, o_zmin[node], o_zmax[node]) * nZ), 0); int max = std::min((int)(normalize(xi + ri, o_xmin[node], o_xmax[node]) * nX), nX - 1); int may = std::min((int)(normalize(yi + ri, o_ymin[node], o_ymax[node]) * nY), nY - 1); int maz = std::min((int)(normalize(zi + ri, o_zmin[node], o_zmax[node]) * nZ), nZ - 1); // Maximize threads sync for (int hz = 0; hz < 2; hz++) { for (int hy = 0; hy < 2; hy++) { for (int hx = 0; hx < 2; hx++) { // if overlap if (hz >= miz && hz <= maz && hy >= miy && hy <= may && hx >= mix && hx <= max) { // int l = hz * nX * nY + hy * nX + hx; // stack[stackptr++] = o_cells[node * 8 + l]; const int l = hz * nX * nY + hy * nX + hx; const int child = o_cells[node * 8 + l]; if(o_localParticleCount[child] > 0) stack[stackptr++] = child; } } } } } if (o_ncells[node] != 8) collisionNodes[collisionsCount++] = node; node = stack[--stackptr]; // Pop next } while (node > 0); //__syncthreads(); int ngc = neighborsCount[pi]; for (int ni = 0; ni < collisionsCount; ni++) { int node = collisionNodes[ni]; T r2 = ri * ri; for (int pj = 0; pj < o_localParticleCount[node]; pj++) { int j = o_localPadding[node] + pj; T xj = x[j]; T yj = y[j]; T zj = z[j]; T xx = xi - xj; T yy = yi - yj; T zz = zi - zj; T dist = xx * xx + yy * yy + zz * zz; if (dist < r2 && i != j && ngc < ngmax) neighbors[ngc++] = j; } } neighborsCount[pi] = ngc; //__syncthreads(); } template <typename T> CUDA_DEVICE_HOST_FUN inline void findNeighborsJLoop(const int pi, const int *clist, const T *x, const T *y, const T *z, const T *h, const T displx, const T disply, const T displz, const int max, const int may, const int maz, const int ngmax, int *neighbors, int *neighborsCount, // The linear tree const int *o_cells, const int *o_ncells, const int *o_localPadding, const int *o_localParticleCount, const T *o_xmin, const T *o_xmax, const T *o_ymin, const T *o_ymax, const T *o_zmin, const T *o_zmax) { T dispx[3], dispy[3], dispz[3]; dispx[0] = 0; dispy[0] = 0; dispz[0] = 0; dispx[1] = -displx; dispy[1] = -disply; dispz[1] = -displz; dispx[2] = displx; dispy[2] = disply; dispz[2] = displz; neighborsCount[pi] = 0; for (int hz = 0; hz <= maz; hz++) for (int hy = 0; hy <= may; hy++) for (int hx = 0; hx <= max; hx++) findNeighborsDispl<T>(pi, clist, x, y, z, h, dispx[hx], dispy[hy], dispz[hz], ngmax, &neighbors[pi * ngmax], neighborsCount, // The linear tree o_cells, o_ncells, o_localPadding, o_localParticleCount, o_xmin, o_xmax, o_ymin, o_ymax, o_zmin, o_zmax); } } // namespace kernels } // namespace sph } // namespace sphexa
34.099379
223
0.517851
j-piccinali
4babec0303841d43ea3124e9d56acc0043cfa327
325
cpp
C++
0621-Task Scheduler/cpp_0621/main.cpp
ooooo-youwillsee/leetcode
07b273f133c8cf755ea40b3ae9df242ce044823c
[ "MIT" ]
12
2020-03-18T14:36:23.000Z
2021-12-19T02:24:33.000Z
0621-Task Scheduler/cpp_0621/main.cpp
ooooo-youwillsee/leetcode
07b273f133c8cf755ea40b3ae9df242ce044823c
[ "MIT" ]
null
null
null
0621-Task Scheduler/cpp_0621/main.cpp
ooooo-youwillsee/leetcode
07b273f133c8cf755ea40b3ae9df242ce044823c
[ "MIT" ]
null
null
null
#include <iostream> #include "Solution1.h" void test(vector<char> tasks, int n) { Solution solution; auto cnt = solution.leastInterval(tasks, n); cout << cnt << endl; } int main() { test({'A', 'A', 'A', 'A', 'A', 'A', 'B', 'C', 'D', 'E', 'F', 'G'}, 2); // 16 test({'A', 'A', 'A', 'B', 'B', 'B'}, 2); // 8 return 0; }
21.666667
77
0.507692
ooooo-youwillsee
4bb16ac9b778c39bfadcac7459f191a8c8a7f947
1,618
cpp
C++
src/shogun/loss/LogLoss.cpp
ShankarNara/shogun
8ab196de16b8d8917e5c84770924c8d0f5a3d17c
[ "BSD-3-Clause" ]
2,753
2015-01-02T11:34:13.000Z
2022-03-25T07:04:27.000Z
src/shogun/loss/LogLoss.cpp
ShankarNara/shogun
8ab196de16b8d8917e5c84770924c8d0f5a3d17c
[ "BSD-3-Clause" ]
2,404
2015-01-02T19:31:41.000Z
2022-03-09T10:58:22.000Z
src/shogun/loss/LogLoss.cpp
ShankarNara/shogun
8ab196de16b8d8917e5c84770924c8d0f5a3d17c
[ "BSD-3-Clause" ]
1,156
2015-01-03T01:57:21.000Z
2022-03-26T01:06:28.000Z
/* * This software is distributed under BSD 3-clause license (see LICENSE file). * * Authors: Shashwat Lal Das, Fernando Iglesias */ #include <shogun/loss/LogLoss.h> using namespace shogun; float64_t LogLoss::loss(float64_t z) { return (z >= 0) ? log(1 + exp(-z)) : -z + log(1 + exp(z)); } float64_t LogLoss::first_derivative(float64_t z) { if (z < 0) return -1 / (exp(z) + 1); float64_t ez = exp(-z); return -ez / (ez + 1); } float64_t LogLoss::second_derivative(float64_t z) { float64_t ez = exp(z); return ez / (ez*(ez + 2) + 1); } float64_t LogLoss::get_update(float64_t prediction, float64_t label, float64_t eta_t, float64_t norm) { float64_t w,x; float64_t d = exp(label * prediction); if(eta_t < 1e-6){ /* As with squared loss, for small eta_t we replace the update * with its first order Taylor expansion to avoid numerical problems */ return label*eta_t/((1+d)*norm); } x = eta_t + label*prediction + d; /* This piece of code is approximating W(exp(x))-x. * W is the Lambert W function: W(z)*exp(W(z))=z. * The absolute error of this approximation is less than 9e-5. * Faster/better approximations can be substituted here. */ float64_t W = x>=1. ? 0.86*x+0.01 : exp(0.8*x-0.65); //initial guess float64_t r = x>=1. ? x-log(W)-W : 0.2*x+0.65-W; //residual float64_t t = 1.+W; float64_t u = 2.*t*(t+2.*r/3.); //magic w = W*(1.+r/t*(u-r)/(u-2.*r))-x; //more magic return -(label*w+prediction)/norm; } float64_t LogLoss::get_square_grad(float64_t prediction, float64_t label) { float64_t d = LossFunction::first_derivative(prediction, label); return d*d; }
25.68254
101
0.663782
ShankarNara
4bb5a22c79868f775c5e12e9707b821393065021
730
hpp
C++
include/scene/attachments/light.hpp
AttilioProvenzano/goma-engine
fc61e4e3db2868a70ef0b8b7b21c5fd3b1a37100
[ "MIT" ]
41
2019-05-22T17:13:14.000Z
2021-02-25T08:15:24.000Z
include/scene/attachments/light.hpp
AttilioProvenzano/goma-engine
fc61e4e3db2868a70ef0b8b7b21c5fd3b1a37100
[ "MIT" ]
2
2019-05-08T21:59:12.000Z
2019-05-16T21:41:13.000Z
include/scene/attachments/light.hpp
AttilioProvenzano/goma-engine
fc61e4e3db2868a70ef0b8b7b21c5fd3b1a37100
[ "MIT" ]
1
2019-07-03T01:21:35.000Z
2019-07-03T01:21:35.000Z
#pragma once #include "common/include.hpp" namespace goma { enum LightType { Directional = 0, Point = 1, Spot = 2, Ambient = 3, Area = 4, }; struct Light { std::string name; LightType type{LightType::Directional}; glm::vec3 position{glm::vec3(0.0f)}; glm::vec3 direction{0.0f, 0.0f, 1.0f}; glm::vec3 up{0.0f, 1.0f, 0.0f}; float intensity{1.0f}; glm::vec3 diffuse_color{glm::vec3(1.0f)}; glm::vec3 specular_color{glm::vec3(1.0f)}; glm::vec3 ambient_color{glm::vec3(1.0f)}; std::array<float, 3> attenuation{1.0f, 1.0f, 1.0f}; float inner_cone_angle{360.0f}; float outer_cone_angle{360.0f}; glm::vec2 area_size{glm::vec2(0.0f)}; }; } // namespace goma
20.857143
55
0.620548
AttilioProvenzano
4bb5fa850538954aba44c2cf2cda75340f07e363
3,283
cpp
C++
graph.cpp
VishalGupta0609/algorithms
1dd704a8e8c8e96aeaa43928258e806da3192a6c
[ "MIT" ]
2
2020-10-28T15:02:41.000Z
2021-10-02T13:18:24.000Z
graph.cpp
VishalGupta0609/algorithms
1dd704a8e8c8e96aeaa43928258e806da3192a6c
[ "MIT" ]
4
2020-10-07T05:59:13.000Z
2021-10-02T08:01:27.000Z
graph.cpp
VishalGupta0609/algorithms
1dd704a8e8c8e96aeaa43928258e806da3192a6c
[ "MIT" ]
51
2020-10-01T03:07:30.000Z
2021-10-05T16:25:22.000Z
#include<iostream> using namespace std; int main() { int i,j; int cost; //weight of edge //defining number of vertices int n; cout<<"Enter the number of vertices you want in the graph "; cin>>n; //declaring an array that contain all the vertices int vertices[n]; for(i=0;i<n;i++) vertices[i]=i; char cont; int matrix[n][n]; //declaring adjacency matrix //making the user to enter weight of the edges for(i=0;i<n;i++) { for(j=0;j<n;j++) { if(i!=j) { cout<<"Does there exist any edge directed from vertix "<<vertices[i]<<" to "<<vertices[j]<<" Y/N?"<<endl; cin>>cont; if(cont=='Y'||cont=='y') { cout<<"Enter the weight of the edge "; cin>>cost; matrix[i][j]=cost; } else { matrix[i][j]=1000; //here 1000 represents infinity i.e. the edges are not connected } } else { matrix[i][j]=0; } } } //printing the adjacency matrix cout<<endl<<"The adjacency matrix for the graph is: "<<endl; for(i=0;i<n;i++) { cout<<endl; for(j=0;j<n;j++) { cout<<"\t"<<matrix[i][j]; } } cout<<endl<<endl<<"Note: The value 1000 represents that there might be no edge between the"<<endl <<"vertices or distance between them is infinity"<<endl; //asking the user to enter the source node int source; cout<<"Enter the source node "; cin>>source; //Declaring the array that will contain the traversed nodes int S[n]; //declaring array distance which contains the minimum distance of each vertex from the source node int distance[n]; for(i=0;i<n;i++) { if(i!=source) distance[i]=1000; distance[source]=0; } //declaring the array which contains the predecessors of each vertex in shortest path int pred[n]; for(i=0;i<n;i++) { if(i!=source) pred[i]=-1; pred[source]=source; } //declaring an another array Q which contains the vertices' distances yet to be traversed int Q[n]; for(i=0;i<n;i++) Q[i]=distance[i]; int k=0; int pos; S[n-1]=n; int num=n; while(S[n-1]==n) //Terminating condition....the loop continues till all the nodes are traversed { int min=1000; for(i=0;i<num;i++) // extracting the minimum value out of Q and the correspoinding vertex { if(Q[i]<min) { min=Q[i]; pos=i; } } for(i=0;i<n;i++) { if(matrix[pos][i]!=1000) { if(distance[i]>distance[pos]+matrix[pos][i]) { distance[i]=distance[pos]+matrix[pos][i]; Q[i]=distance[i]; pred[i]=pos; } } } S[k]=pos; k++; num=num-1; //Deleting the traversed node's distance for(i=pos;i<num;i++) { Q[i]=Q[i+1]; } } cout<<"Hence the solution found using DIJKSTRA Algorithm is :"<<endl<<"Vertices\tMin. Distance\tPredecessor"<<endl; for(i=0;i<n;i++) { cout<<vertices[i]<<"\t\t"<<distance[i]<<"\t\t"<<pred[i]<<endl; } return 0; }
20.778481
117
0.52452
VishalGupta0609
4bbe941222c19d19578cb80c2be64541790b7b9f
1,889
cpp
C++
src/utility.cpp
ishansheth/ArkanoidGame
81a6e48ef8ebb32dd19bbb18aeb0d95e7a1cd4d5
[ "MIT" ]
null
null
null
src/utility.cpp
ishansheth/ArkanoidGame
81a6e48ef8ebb32dd19bbb18aeb0d95e7a1cd4d5
[ "MIT" ]
null
null
null
src/utility.cpp
ishansheth/ArkanoidGame
81a6e48ef8ebb32dd19bbb18aeb0d95e7a1cd4d5
[ "MIT" ]
null
null
null
#include "utility.hpp" template<typename T1,typename T2> bool isIntersecting(const T1& mA,const T2& mB) { return ((mA.right() >= mB.left()) && (mA.left() <= mB.right()) && (mA.bottom() >= mB.top()) && (mA.top() <= mB.bottom())); } void solvePaddleBallCollision(const Paddle& mpaddle, Ball& mball) noexcept { if(!isIntersecting(mpaddle,mball)) return; mball.velocity.y = -abs(mball.velocity.y); mball.velocity.x = (mball.x() < mpaddle.x()) ? (-abs(mball.velocity.x)) : (mball.velocity.x); } void solveBrickBulletCollision(Brick& mbrick,Bullet& mbullet) noexcept { if(!isIntersecting(mbrick,mbullet))return; --mbrick.hitsRequired; if(!mbrick.hitsRequired) { mbrick.flingBrick(); } mbullet.destroyed = true; } void solveBallBrickCollision(Brick& mbrick, Ball& mball) noexcept { if(!mbrick.isFlying()) { if(!isIntersecting(mbrick,mball)) return; --mbrick.hitsRequired; mball.beepSound->playSound(); if(!mbrick.hitsRequired) { mbrick.flingBrick(); } float overlapLeft{mball.right()-mbrick.left()}; float overlapRight{mbrick.right()-mball.left()}; float overlapTop{mball.bottom()-mbrick.top()}; float overlapBottom{mbrick.bottom()-mball.top()}; bool ballFromLeft{std::abs(overlapLeft) < std::abs(overlapRight)}; bool ballFromRight{std::abs(overlapLeft) > std::abs(overlapRight)}; bool ballFromTop{std::abs(overlapTop) < std::abs(overlapBottom)}; bool ballFromBottom{std::abs(overlapTop) > std::abs(overlapBottom)}; if((overlapLeft < overlapTop && overlapLeft < overlapBottom) || (overlapRight < overlapTop && overlapRight < overlapBottom)){ mball.velocity.x = -mball.velocity.x; } else if((overlapTop < overlapLeft && overlapTop < overlapRight) || (overlapBottom < overlapLeft && overlapBottom < overlapRight)){ mball.velocity.y = -mball.velocity.y; } } }
29.984127
133
0.676019
ishansheth
4bbf2bc7d4d3d78e24399c214954553968472ddb
219
hpp
C++
src/modules/osgDB/generated_code/InputIterator.pypp.hpp
JaneliaSciComp/osgpyplusplus
a5ae3f69c7e9101a32d8cc95fe680dab292f75ac
[ "BSD-3-Clause" ]
17
2015-06-01T12:19:46.000Z
2022-02-12T02:37:48.000Z
src/modules/osgDB/generated_code/InputIterator.pypp.hpp
cmbruns/osgpyplusplus
f8bfca2cf841e15f6ddb41c958f3ad0d0b9e4b75
[ "BSD-3-Clause" ]
7
2015-07-04T14:36:49.000Z
2015-07-23T18:09:49.000Z
src/modules/osgDB/generated_code/InputIterator.pypp.hpp
cmbruns/osgpyplusplus
f8bfca2cf841e15f6ddb41c958f3ad0d0b9e4b75
[ "BSD-3-Clause" ]
7
2015-11-28T17:00:31.000Z
2020-01-08T07:00:59.000Z
// This file has been generated by Py++. #ifndef InputIterator_hpp__pyplusplus_wrapper #define InputIterator_hpp__pyplusplus_wrapper void register_InputIterator_class(); #endif//InputIterator_hpp__pyplusplus_wrapper
24.333333
45
0.858447
JaneliaSciComp
4bc016ea50ad0250bbe3cda56d071c552c8601db
677
cpp
C++
src/main.cpp
Danduriel/rocky2
1a4441957c00de5f0f457a452398b68a00c9bea4
[ "MIT" ]
null
null
null
src/main.cpp
Danduriel/rocky2
1a4441957c00de5f0f457a452398b68a00c9bea4
[ "MIT" ]
null
null
null
src/main.cpp
Danduriel/rocky2
1a4441957c00de5f0f457a452398b68a00c9bea4
[ "MIT" ]
null
null
null
#include "engine.h" #include "helper.h" // Add only very first state game should jump into #include "teststate.h" #include "menustate.h" #include "playstate.h" int main() { //Instance of game engine (Holds the sfml screen) engine game; //Mainly to initialise the sf::window game.init(1280,800,"Rocky the Rocket's Path to infinity and beyond"); //Set start State game.changestate(menustate::instance()); //Main Loop - No touching nessecary //Add framelimit while (game.running()) { //printf("mainloop\n"); game.handleEvents(); game.update(); game.draw(); } game.cleanup(); return 0; }
18.805556
73
0.624815
Danduriel
4bc8eeb76fabe9f3cb2260af163788f89cc37a42
673
cpp
C++
pg_answer/0b8da730c9ad43f093ea1f3b7f40e424.cpp
Guyutongxue/Introduction_to_Computation
062f688fe3ffb8e29cfaf139223e4994edbf64d6
[ "WTFPL" ]
8
2019-10-09T14:33:42.000Z
2020-12-03T00:49:29.000Z
pg_answer/0b8da730c9ad43f093ea1f3b7f40e424.cpp
Guyutongxue/Introduction_to_Computation
062f688fe3ffb8e29cfaf139223e4994edbf64d6
[ "WTFPL" ]
null
null
null
pg_answer/0b8da730c9ad43f093ea1f3b7f40e424.cpp
Guyutongxue/Introduction_to_Computation
062f688fe3ffb8e29cfaf139223e4994edbf64d6
[ "WTFPL" ]
null
null
null
#include <iostream> int sumOfFactor(int x) { constexpr int MAX{100001}; static int saved[MAX]{}; if (x < MAX && saved[x] != 0) { return saved[x]; } int sum{1}; for (int i{2}; i * i <= x; i++) { if (x % i == 0) { sum += i; if (i * i != x) { sum += x / i; } } } if (x < MAX) { saved[x] = sum; } return sum; } int main() { int n; std::cin >> n; for (int i{1}; i <= n; i++) { int sf{sumOfFactor(i)}; if (sf > i && sf < n && sumOfFactor(sf) == i) { std::cout << i << " " << sf << std::endl; } } }
19.794118
55
0.36107
Guyutongxue
4bc8fab1a0c2d8b5300f554025e93423e72c2c11
518
cpp
C++
Machines/dealer-ring-party.cpp
triplewz/MP-SPDZ
a858e5b440902ec25dbb97c555eef35e12fbf69c
[ "BSD-2-Clause" ]
null
null
null
Machines/dealer-ring-party.cpp
triplewz/MP-SPDZ
a858e5b440902ec25dbb97c555eef35e12fbf69c
[ "BSD-2-Clause" ]
null
null
null
Machines/dealer-ring-party.cpp
triplewz/MP-SPDZ
a858e5b440902ec25dbb97c555eef35e12fbf69c
[ "BSD-2-Clause" ]
null
null
null
/* * dealer-ring-party.cpp * */ #include "Protocols/DealerShare.h" #include "Protocols/DealerInput.h" #include "Processor/RingMachine.hpp" #include "Processor/Machine.hpp" #include "Protocols/Replicated.hpp" #include "Protocols/DealerPrep.hpp" #include "Protocols/DealerInput.hpp" #include "Protocols/DealerMC.hpp" #include "Protocols/Beaver.hpp" #include "Semi.hpp" #include "GC/DealerPrep.h" int main(int argc, const char** argv) { HonestMajorityRingMachine<DealerRingShare, DealerShare>(argc, argv, 0); }
22.521739
75
0.754826
triplewz
4bc941c08123f0f7fc432a5ef85918bda9fe0f8d
16,043
cpp
C++
dlls/zombiemaster/zm_powers_concom.cpp
renannprado/zombie_master
8c9dff1877703ed0c90367ce94a59f7e76e1c4a8
[ "MIT" ]
null
null
null
dlls/zombiemaster/zm_powers_concom.cpp
renannprado/zombie_master
8c9dff1877703ed0c90367ce94a59f7e76e1c4a8
[ "MIT" ]
null
null
null
dlls/zombiemaster/zm_powers_concom.cpp
renannprado/zombie_master
8c9dff1877703ed0c90367ce94a59f7e76e1c4a8
[ "MIT" ]
null
null
null
//============================================================================= // Copyright (c) Zombie Master Development Team. All rights reserved. // The use and distribution terms for this software are covered by the MIT // License (http://opensource.org/licenses/mit-license.php) which // can be found in the file LICENSE.TXT at the root of this distribution. By // using this software in any fashion, you are agreeing to be bound by the // terms of this license. You must not remove this notice, or any other, from // this software. // // Note that due to the number of files included in the SDK, it is not feasible // to include this notice in all of them. All original files or files // containing large modifications should contain this notice. If in doubt, // assume the above notice applies, and refer to the included LICENSE.TXT text. //============================================================================= // // Purpose: Console commands for the Zombie Master's strange powers // //=============================================================================// #include "cbase.h" #include "player.h" #include "Sprite.h" //for physexplode power #include "physobj.h" #include "IEffects.h" //For SpotCreate #include "ai_basenpc.h" #include "game.h" #include "zombiemaster_specific.h" // memdbgon must be the last include file in a .cpp file!!! #include "tier0/memdbgon.h" #define ZM_PHYSEXP_DAMAGE "17500" //needs to be pretty high or heavier objects won't budge #define ZM_PHYSEXP_RADIUS "222" //#define ZM_PHYSEXP_COST 400 //pretty expensive, but for something that can blow a barricade apart... //#define ZM_SPOTCREATE_COST 100 //TGB: these get replicated to the client ConVar zm_physexp_cost( "zm_physexp_cost", "400", FCVAR_REPLICATED, "Explosion cost" ); ConVar zm_spotcreate_cost( "zm_spotcreate_cost", "100", FCVAR_REPLICATED, "Spotcreate cost" ); ConVar zm_physexp_forcedrop_radius( "zm_physexp_forcedrop_radius", "128", FCVAR_NOTIFY, "Radius in which players are forced to drop what they carry so that the physexp can affect the objects." ); #define ZM_PHYSEXP_DELAY 7.4f //TGB: COMMENTED, going to do it all differently //#define ZM_PHYSEXP_SPRITE "effects/zm_refract.vmt" //#define ZM_PHYSEXP_SPRITE "effects/zm_ring.vmt" /* //gah, just make a seperate model ent class class CDelayedPhysExp_Effects : public CBaseAnimating { DECLARE_CLASS( CDelayedPhysExp_Effects, CBaseAnimating ); DECLARE_SERVERCLASS(); void Spawn () { Precache(); SetSolid( SOLID_NONE ); SetModel( "models/manipulatable.mdl" ); UTIL_SetSize( this, -Vector(2,2,2), Vector(2,2,2) ); } void Precache() { DevMsg("*** PHYSEXP_EFFECTS PRECACHING\n"); PrecacheMaterial( ZM_PHYSEXP_SPRITE ); PrecacheMaterial("models/red2"); //test PrecacheModel( "models/manipulatable.mdl" ); BaseClass::Precache(); } }; IMPLEMENT_SERVERCLASS_ST(CDelayedPhysExp_Effects, DT_DelayedPhysExp_Effects) END_SEND_TABLE() LINK_ENTITY_TO_CLASS( env_physexp_effects, CDelayedPhysExp_Effects ); */ //------------------------------------------------------------------------------ // Purpose: TGB: A CPhysExplosion that explodes after a set delay // Move to physobj.h/.cpp if we're going to do this in more places //------------------------------------------------------------------------------ class CDelayedPhysExplosion : public CPhysExplosion { public: //DECLARE_CLASS( CDelayedPhysExplosion, CPhysExplosion ); DECLARE_CLASS( CDelayedPhysExplosion, CPhysExplosion ); ~CDelayedPhysExplosion(); void Spawn ( void ); void Precache ( void ); // void Explode( CBaseEntity *pActivator ); void DelayedExplode ( float delay ); void DelayThink (); void CreateDelayEffects (float delay); DECLARE_DATADESC(); private: // EHANDLE m_hDelayEffect; // float m_damage; // float m_radius; // string_t m_targetEntityName; CBaseEntity *m_pSparker; }; BEGIN_DATADESC( CDelayedPhysExplosion ) //DEFINE_KEYFIELD( m_damage, FIELD_FLOAT, "magnitude" ), //DEFINE_KEYFIELD( m_radius, FIELD_FLOAT, "radius" ), DEFINE_THINKFUNC( DelayThink ), END_DATADESC() LINK_ENTITY_TO_CLASS( env_delayed_physexplosion, CDelayedPhysExplosion ); CDelayedPhysExplosion::~CDelayedPhysExplosion() { // CBaseEntity *m_pDelayEffect = m_hDelayEffect; // UTIL_Remove(m_pDelayEffect); UTIL_Remove(m_pSparker); } void CDelayedPhysExplosion::Spawn() { Precache(); } void CDelayedPhysExplosion::Precache() { PrecacheScriptSound( "ZMPower.PhysExplode_Buildup" ); PrecacheScriptSound( "ZMPower.PhysExplode_Boom" ); BaseClass::Precache(); } void CDelayedPhysExplosion::DelayedExplode( float delay ) { DevMsg("CDelayedPhysExplosion: initiating delaythink\n"); CreateDelayEffects( delay ); // if (m_hDelayEffect) // DevMsg("Delayeffect created succesfully\n"); SetThink( &CDelayedPhysExplosion::DelayThink ); SetNextThink( gpGlobals->curtime + delay ); } //-------------------------------------------------------------- // Stop sparking, make players drop things, and do our explosion //-------------------------------------------------------------- void CDelayedPhysExplosion::DelayThink( ) { DevMsg("CDelayedPhysExplosion: think triggered, exploding at %f\n", gpGlobals->curtime); SetThink(NULL); //TGB: more sparklies g_pEffects->Sparks(GetAbsOrigin(), 10, 5); //TGB: woomp sound CPASAttenuationFilter filter( this, 1.0f); filter.MakeReliable(); EmitSound_t ep; ep.m_pSoundName = "ZMPower.PhysExplode_Boom"; ep.m_pOrigin = &GetAbsOrigin(); EmitSound( filter, entindex(), ep ); //make players in range drop their stuff, radius is cvar'd CBaseEntity *ent = NULL; for ( CEntitySphereQuery sphere( GetAbsOrigin(), zm_physexp_forcedrop_radius.GetFloat(), FL_CLIENT ); (ent = sphere.GetCurrentEntity()) != NULL; sphere.NextEntity() ) { CBasePlayer *pPlayer = ToBasePlayer( ent ); //will be null if not a player if (pPlayer != NULL) pPlayer->ForceDropOfCarriedPhysObjects(NULL); } //actual physics explosion Explode(NULL, this); //remove delay effects UTIL_Remove(m_pSparker); //another run for good measure g_pEffects->Sparks(GetAbsOrigin(), 15, 3); //TGB: clean ourselves up, else we stay around til round end UTIL_Remove(this); } void CDelayedPhysExplosion::CreateDelayEffects( float delay ) { //sound CPASAttenuationFilter filter( this, 0.6f); filter.MakeReliable(); EmitSound_t ep; ep.m_pSoundName = "ZMPower.PhysExplode_Buildup"; ep.m_pOrigin = &GetAbsOrigin(); EmitSound( filter, entindex(), ep ); //TGB: we want a particle effect instead g_pEffects->Sparks(this->GetAbsOrigin(), 1, 5); CBaseEntity *m_pSparker = (CBaseEntity *)CreateEntityByName("env_spark"); if (m_pSparker) { //set flags //copied over, see envspark.cpp const int SF_SPARK_START_ON = 64; const int SF_SPARK_GLOW = 128; const int SF_SPARK_SILENT = 256; m_pSparker->AddSpawnFlags( SF_SPARK_START_ON ); m_pSparker->AddSpawnFlags( SF_SPARK_GLOW ); m_pSparker->AddSpawnFlags( SF_SPARK_SILENT ); m_pSparker->KeyValue( "MaxDelay" , 0.1f ); m_pSparker->KeyValue( "Magnitude" , 2 ); m_pSparker->KeyValue( "TrailLength" , 1.5 ); //modify delay to account for delayed dying of sparker delay -= 2.2f; m_pSparker->KeyValue( "DeathTime" , (gpGlobals->curtime + delay) ); //DevMsg( "Sparker deathtime = %f\n", (gpGlobals->curtime + delay) ); DispatchSpawn(m_pSparker); m_pSparker->Teleport( &GetAbsOrigin(), NULL, NULL ); } //visual // m_pDelayEffect = CSprite::SpriteCreate( ZM_PHYSEXP_SPRITE, GetLocalOrigin(), FALSE ); // m_pDelayEffect->SetTransparency( kRenderTransAddFrameBlend, 255, 255, 255, 0, kRenderFxNone ); //CPhysExplosion *exp_ent = (CPhysExplosion *)CreateEntityByName("env_physexplosion"); //CDelayedPhysExp_Effects *m_pDelayEffect = (CDelayedPhysExp_Effects *)CreateEntityByName("env_physexp_effects"); //m_hDelayEffect = m_pDelayEffect; ////DevMsg("Attempted to create exp_ent\n"); //if (m_pDelayEffect) //{ // DispatchSpawn(m_pDelayEffect); // // Now attempt to drop into the world // m_pDelayEffect->Teleport( &GetAbsOrigin(), NULL, NULL ); // m_pDelayEffect->Activate(); //} } //------------------------------------------------------------------------------ // Purpose: TGB: Create a physics explosion at a chosen location //------------------------------------------------------------------------------ #define SF_PHYSEXPLOSION_NODAMAGE 0x0001 #define SF_PHYSEXPLOSION_DISORIENT_PLAYER 0x0010 void ZM_Power_PhysExplode( void ) { Vector location = Vector( atof(engine->Cmd_Argv(1)), atof(engine->Cmd_Argv(2)), atof(engine->Cmd_Argv(3)) ); if (location.IsValid() == false) { Warning("Invalid location for physexplode\n"); return; } CBasePlayer *pPlayer = ToBasePlayer( UTIL_GetCommandClient() ); //find a pointer to the player that the client controls if ( !pPlayer || (pPlayer && pPlayer->IsZM() == false) ) return; if ( pPlayer->m_iZombiePool.Get() < zm_physexp_cost.GetInt() ) return; //deduct sauce pPlayer->m_iZombiePool.GetForModify() -= zm_physexp_cost.GetInt(); DevMsg("PhysExplode loc: %f %f %f\n", location.x, location.y, location.z); //TGB: I'm employing a method as seen in npc_create here //CPhysExplosion *exp_ent = (CPhysExplosion *)CreateEntityByName("env_physexplosion"); CDelayedPhysExplosion *exp_ent = (CDelayedPhysExplosion *)CreateEntityByName("env_delayed_physexplosion"); //DevMsg("Attempted to create exp_ent\n"); if (exp_ent) { exp_ent->KeyValue( "magnitude", ZM_PHYSEXP_DAMAGE ); exp_ent->KeyValue( "radius", ZM_PHYSEXP_RADIUS ); //don't do damage, or wooden boxes and such will explode immediately exp_ent->AddSpawnFlags( SF_PHYSEXPLOSION_NODAMAGE ); //disorienting could help balance exp_ent->AddSpawnFlags( SF_PHYSEXPLOSION_DISORIENT_PLAYER ); //DevMsg("Dispatching exp_ent spawn\n"); DispatchSpawn(exp_ent); // Now attempt to drop into the world exp_ent->Teleport( &location, NULL, NULL ); //DevMsg("Exploding exp_ent (with delay)\n"); exp_ent->Activate(); //exp_ent->Explode( pPlayer ); exp_ent->DelayedExplode( ZM_PHYSEXP_DELAY ); ClientPrint(pPlayer, HUD_PRINTTALK, "Explosion created."); } } static ConCommand zm_power_physexplode("zm_power_physexplode", ZM_Power_PhysExplode, "Creates a physics explosion at a chosen location" ); //------------------------------------------------------------------------------ // Purpose: Lawyer: Summon a shamblie in an out-of-the-way place //------------------------------------------------------------------------------ void ZM_Power_SpotCreate( void ) { CBasePlayer *pPlayer = ToBasePlayer( UTIL_GetCommandClient() ); //find a pointer to the player that the client controls if ( !pPlayer || (pPlayer && pPlayer->IsZM() == false) ) return; Vector location = Vector( atof(engine->Cmd_Argv(1)), atof(engine->Cmd_Argv(2)), atof(engine->Cmd_Argv(3)) ); if (location.IsValid() == false) { Warning("Invalid location for spot creation\n"); return; } //TGB: BUGBUG: lifting up the location means the roof needs to be 72+50 units above or spawn will be denied // instead, maybe try a few traces at 15-unit height decrements before denying //location.z += 50; //push up a bit //location.z += 15; //trace down to find the floor, in an attempt to prevent us spawning under displacements etc trace_t tr_floor; const Vector delta = Vector(0, 0, 25); Vector lifted_location = location + delta; Vector sunken_location = location - delta; UTIL_TraceHull(lifted_location, sunken_location, NAI_Hull::Mins(HULL_HUMAN), NAI_Hull::Maxs(HULL_HUMAN), MASK_NPCSOLID, NULL, COLLISION_GROUP_NONE, &tr_floor); if ( tr_floor.fraction == 1.0f ) { DevWarning("Spotcreate: floor not found!\n"); ClientPrint( pPlayer, HUD_PRINTCENTER, "The zombie does not fit in that location!\n" ); return; } //whatever we hit should be our spawning location location = tr_floor.endpos; if ( pPlayer->m_iZombiePool.Get() < zm_spotcreate_cost.GetInt() ) return; /* if ( zm_zombiemax.GetInt() <= pPlayer->m_iZombiePopCount ) { //find the ZM so we can talk to him CBasePlayer *zmplayer = CBasePlayer::GetZM(); if (zmplayer) ClientPrint( zmplayer, HUD_PRINTCENTER, "Maximum number of zombies reached!\n" ); return; }*/ CBasePlayer *pEntity = NULL; trace_t tr; Vector vecSpot; Vector vecHeadTarget = location; vecHeadTarget.z += 64; //LAWYER: Check if it's a valid spawnpoint first //LAWYER: Check for block brushes first D: // CTriggerBlockSpotCreate *pSelector = NULL; for ( int i = 0; i < gEntList.m_ZombieSpotCreateBlocker.Count(); i++) { CTriggerBlockSpotCreate *pSelector = dynamic_cast< CTriggerBlockSpotCreate * >(gEntList.m_ZombieSpotCreateBlocker[i]); if (pSelector) { if (pSelector->m_bActive && pSelector->CollisionProp()) { //TGB: heh, turns out IsPointInBounds does all the work for us, without origin hassle /* Vector vecMins = pSelector->CollisionProp()->OBBMins(); Vector vecMaxs = pSelector->CollisionProp()->OBBMaxs(); Warning("Point at %f,%f,%f\n", location.x, location.y, location.z); Warning("Mins at %f,%f,%f\n", vecMins.x, vecMins.y, vecMins.z); Warning("Maxs at %f,%f,%f\n", vecMaxs.x, vecMaxs.y, vecMaxs.z); //Cycle through all of the blocker brushes if (vecMins.x <= location.x && vecMins.y <= location.y && vecMins.z <= location.z && vecMaxs.x >= location.x && vecMaxs.y >= location.y && vecMaxs.z >= location.z) */ if (pSelector->CollisionProp()->IsPointInBounds(location)) { //CBasePlayer *zmplayer = CBasePlayer::GetZM(); ClientPrint( pPlayer, HUD_PRINTTALK, "No hidden zombie may be created there\n" ); return; } } } } //For each Player on the server // Check that the thing can 'see' this entity. for (int i = 1; i <= gpGlobals->maxClients; i++ ) { pEntity = UTIL_PlayerByIndex( i ); if (pEntity) { DevMsg("Spotspawn found player %i\n", i); vecSpot = pEntity->BodyTarget( location, false ); UTIL_TraceLine( location, vecSpot, MASK_OPAQUE, NULL, COLLISION_GROUP_NONE, &tr ); //test at feet level bool visible = false; if ( tr.fraction == 1.0 && pEntity->GetTeamNumber() == 2) { DevMsg("Failed SpotCreate, %i is visible at feet\n", i); visible = true; //We've hit a Human! } UTIL_TraceLine( vecHeadTarget, vecSpot, MASK_OPAQUE, NULL, COLLISION_GROUP_NONE, &tr ); //Test at eye level if ( tr.fraction == 1.0 && pEntity->GetTeamNumber() == 2) { DevMsg("Failed SpotCreate, %i is visible at head\n", i); visible = true; //We've hit a Human! } if (visible) //one of the traces hit { //tell the ZM //CBasePlayer *zmplayer = CBasePlayer::GetZM(); ClientPrint( pPlayer, HUD_PRINTCENTER, "One of the survivors can see this location!\n" ); return; } } } //TGB: this check may be obsolete now that we do a tracehull to find the spawn location in the first place //LAWYER: From Monstermaker, this checks for bad spawnpoints. trace_t trCheckShape; UTIL_TraceHull( location, location + Vector( 0, 0, 1 ), NAI_Hull::Mins(HULL_HUMAN), NAI_Hull::Maxs(HULL_HUMAN), MASK_NPCSOLID, NULL, COLLISION_GROUP_NONE, &trCheckShape ); if( trCheckShape.fraction != 1.0 ) { //Warning("Doesn't fit there!\n"); ClientPrint( pPlayer, HUD_PRINTCENTER, "The zombie does not fit in that location!\n" ); return; } //Warning("SpotCreate Successful\n"); DevMsg("SpotCreate loc: %f %f %f\n", location.x, location.y, location.z); //TGB: spawn stuff moved into spawnzombie func CNPC_BaseZombie *pZombie = CZombieSpawn::SpawnZombie("npc_zombie", location, pPlayer->GetAbsAngles()); //DevMsg("Attempted to create exp_ent\n"); if (pZombie) { //TGB: only deduct sauce if something spawned properly //deduct sauce pPlayer->m_iZombiePool.GetForModify() -= zm_spotcreate_cost.GetInt(); ClientPrint(pPlayer, HUD_PRINTTALK, "Hidden zombie spawned."); } } static ConCommand zm_power_spotcreate("zm_power_spotcreate", ZM_Power_SpotCreate, "Creates a Shambler at target location, if it is unseen to players" );
32.086
195
0.685096
renannprado
4bca49cd934285d53fb56bf6b6b35585b0f1dfe4
237
hpp
C++
MazeSolver/Source/Dijsktra.hpp
Darhal/Maze-Solver
f8d46a6b3732a391efff63ed663ab47000b61388
[ "MIT" ]
null
null
null
MazeSolver/Source/Dijsktra.hpp
Darhal/Maze-Solver
f8d46a6b3732a391efff63ed663ab47000b61388
[ "MIT" ]
null
null
null
MazeSolver/Source/Dijsktra.hpp
Darhal/Maze-Solver
f8d46a6b3732a391efff63ed663ab47000b61388
[ "MIT" ]
null
null
null
#pragma once #include "maze.hpp" class Maze; class Dijsktra { public: Dijsktra(Maze* maze); void Start(const Pair& start, const Pair& end); uint32_t minDistance(uint32_t dist[], bool sptSet[], uint32_t V); private: Maze* maze; };
14.8125
66
0.708861
Darhal
4bcd7dae511726a26dfc95f97da671ad64e71681
2,158
cpp
C++
Source/Pyramid.cpp
jetspiking/Blockworld
be452d31563f33924ba3e03ee6beb5b9e7058cc5
[ "MIT" ]
null
null
null
Source/Pyramid.cpp
jetspiking/Blockworld
be452d31563f33924ba3e03ee6beb5b9e7058cc5
[ "MIT" ]
null
null
null
Source/Pyramid.cpp
jetspiking/Blockworld
be452d31563f33924ba3e03ee6beb5b9e7058cc5
[ "MIT" ]
null
null
null
#include "Pyramid.h" // E // + // / \`. // /' \ `. // /. \ `. // C /+------\---'+ D // /' ` . \ ' // /' ` . \' // A +------------+ B Pyramid::Pyramid(glm::vec3 position, glm::vec3 dimensions) : Shape::Shape(position, dimensions) { this->set_shape_type(Shape::PYRAMID); } void Pyramid::getAllIndices(std::vector<glm::vec3>& vertices_out, std::vector<glm::vec3>& indices_out) const { vertices_out.resize(Pyramid::vertices_count); //Vertices vertices_out[PYRAMID_A] = glm::vec3(position.x - (dimensions.x / 2.), position.y - (dimensions.y / 2.), position.z + (dimensions.z / 2.)); // A vertices_out[PYRAMID_B] = glm::vec3(position.x + (dimensions.x / 2.), position.y - (dimensions.y / 2.), position.z + (dimensions.z / 2.)); // B vertices_out[PYRAMID_C] = glm::vec3(position.x - (dimensions.x / 2.), position.y - (dimensions.y / 2.), position.z - (dimensions.z / 2.)); // C vertices_out[PYRAMID_D] = glm::vec3(position.x + (dimensions.x / 2.), position.y - (dimensions.y / 2.), position.z - (dimensions.z / 2.)); // D vertices_out[PYRAMID_E] = glm::vec3(position.x + (dimensions.x / 4.), position.y + (dimensions.y / 2.), position.z + (dimensions.z / 4.)); // E indices_out.resize(Pyramid::indices_count); //ABE indices_out[0] = vertices_out[PYRAMID_A]; indices_out[1] = vertices_out[PYRAMID_B]; indices_out[2] = vertices_out[PYRAMID_E]; //BDE indices_out[3] = vertices_out[PYRAMID_B]; indices_out[4] = vertices_out[PYRAMID_D]; indices_out[5] = vertices_out[PYRAMID_E]; //DCE indices_out[6] = vertices_out[PYRAMID_D]; indices_out[7] = vertices_out[PYRAMID_C]; indices_out[8] = vertices_out[PYRAMID_E]; //CAE indices_out[9] = vertices_out[PYRAMID_C]; indices_out[10] = vertices_out[PYRAMID_A]; indices_out[11] = vertices_out[PYRAMID_E]; //ABC indices_out[12] = vertices_out[PYRAMID_A]; indices_out[13] = vertices_out[PYRAMID_B]; indices_out[14] = vertices_out[PYRAMID_C]; //DCB indices_out[15] = vertices_out[PYRAMID_D]; indices_out[16] = vertices_out[PYRAMID_C]; indices_out[17] = vertices_out[PYRAMID_B]; }
40.716981
146
0.635774
jetspiking
4bcf0831bf1af81ed822869ddd24a1b5816e4e1c
447
cpp
C++
leetcodes/MinClimingStairs.cpp
DaechurJeong/Private_Proj
66eec4d22372166af7f7643a9b1307ca7e5ce21a
[ "MIT" ]
null
null
null
leetcodes/MinClimingStairs.cpp
DaechurJeong/Private_Proj
66eec4d22372166af7f7643a9b1307ca7e5ce21a
[ "MIT" ]
null
null
null
leetcodes/MinClimingStairs.cpp
DaechurJeong/Private_Proj
66eec4d22372166af7f7643a9b1307ca7e5ce21a
[ "MIT" ]
2
2020-04-21T23:52:31.000Z
2020-04-24T13:37:28.000Z
#include <iostream> #include <vector> #include <queue> using namespace std; int minCostClimbingStairs(vector<int>& cost) { int n = cost.size(); vector<int> dp(n); dp[0] = cost[0], dp[1] = cost[1]; for (int i = 2; i < n; ++i) { dp[i] = min(dp[i - 1], dp[i - 2]) + cost[i]; } return min(dp[n - 1], dp[n - 2]); } int main(void) { vector<int> cost{ 1,100,1,1,1,100,1,1,100,1 }; cout << minCostClimbingStairs(cost) << endl; return 0; }
17.88
47
0.583893
DaechurJeong
4bd1184aa998e4637545a1c355d3de860a293a6a
1,788
cpp
C++
backtracking/solve-sudoku.cpp
Nilesh-Das/mustdogfg
bb39fe6eb9dd4964f97a7ab6d4e65e4c3994fc3f
[ "MIT" ]
null
null
null
backtracking/solve-sudoku.cpp
Nilesh-Das/mustdogfg
bb39fe6eb9dd4964f97a7ab6d4e65e4c3994fc3f
[ "MIT" ]
null
null
null
backtracking/solve-sudoku.cpp
Nilesh-Das/mustdogfg
bb39fe6eb9dd4964f97a7ab6d4e65e4c3994fc3f
[ "MIT" ]
null
null
null
#include <iostream> #include <vector> #include <cassert> using namespace std; class Solution { public: void print(vector<vector<char>>& board) { for(int i = 0; i < 9; i++) { for(int j = 0; j < 9; j++) { cout << board[i][j] << ' '; } cout << '\n'; } } bool isValid(vector<vector<char>>& board, int r, int c, char ch) { for(int i = 0; i < 9; i++){ if(board[i][c] == ch || board[r][i] == ch) return false; if(board[3*(r/3)+i/3][3*(c/3)+i%3] == ch) return false; } return true; } bool backtrack(vector<vector<char>>& board) { for(int i = 0; i < board.size(); i++) { for(int j = 0; j < board[0].size(); j++) { if(board[i][j] != '.') continue; for(char c = '1'; c <= '9'; c++) { if(!isValid(board,i,j,c)) continue; board[i][j] = c; if(backtrack(board)) return true; board[i][j] = '.'; } return false; } } return true; } void solveSudoku(vector<vector<char>>& board) { backtrack(board); } }; int main() { Solution s; vector<vector<char>> board; board = {{'5','3','.','.','7','.','.','.','.'} ,{'6','.','.','1','9','5','.','.','.'} ,{'.','9','8','.','.','.','.','6','.'} ,{'8','.','.','.','6','.','.','.','3'} ,{'4','.','.','8','.','3','.','.','1'} ,{'7','.','.','.','2','.','.','.','6'} ,{'.','6','.','.','.','.','2','8','.'} ,{'.','.','.','4','1','9','.','.','5'} ,{'.','.','.','.','8','.','.','7','9'}}; s.solveSudoku(board); s.print(board); }
28.380952
70
0.342841
Nilesh-Das
4bdf207a97258c246beae0a7edc6cc9a3a626f60
744
hpp
C++
ECS/includes/Event.hpp
LiardeauxQ/r-type
8a77164c276b2d5958cd3504a9ea34f1cf6823cf
[ "MIT" ]
2
2020-02-12T12:02:00.000Z
2020-12-23T15:31:59.000Z
ECS/includes/Event.hpp
LiardeauxQ/r-type
8a77164c276b2d5958cd3504a9ea34f1cf6823cf
[ "MIT" ]
null
null
null
ECS/includes/Event.hpp
LiardeauxQ/r-type
8a77164c276b2d5958cd3504a9ea34f1cf6823cf
[ "MIT" ]
2
2020-02-12T12:02:03.000Z
2020-12-23T15:32:55.000Z
// // Created by Quentin Liardeaux on 11/19/19. // #ifndef R_TYPE_IEVENT_HPP #define R_TYPE_IEVENT_HPP #include <string> #include <functional> #include <any> using namespace std; namespace ecs { class Event { public: Event(string const &type, any value); Event(const Event &other); Event(Event&& other) noexcept; ~Event() = default; [[nodiscard]] bool isOfType(string const &type) const; template <typename T> [[nodiscard]] const T& getValue() { return any_cast<T&>(m_value); } Event& operator=(const Event &) = default; Event& operator=(Event&& other) noexcept; private: size_t m_type; any m_value; }; } #endif //R_TYPE_IEVENT_HPP
20.666667
75
0.620968
LiardeauxQ
4be18c82bc402d7e5e2dda622c69e28d8abac806
558
cpp
C++
test/tasks.cpp
CNR-STIIMA-IRAS/realtime_utilities
5500b4221ebab92d33b0f1dc7192da8a815b5998
[ "Apache-2.0" ]
null
null
null
test/tasks.cpp
CNR-STIIMA-IRAS/realtime_utilities
5500b4221ebab92d33b0f1dc7192da8a815b5998
[ "Apache-2.0" ]
1
2021-02-24T15:51:52.000Z
2021-02-24T15:51:52.000Z
test/tasks.cpp
CNR-STIIMA-IRAS/realtime_utilities
5500b4221ebab92d33b0f1dc7192da8a815b5998
[ "Apache-2.0" ]
1
2019-12-17T00:42:54.000Z
2019-12-17T00:42:54.000Z
#include <iostream> #include <functional> #include "realtime_utilities/parallel_computing.h" int main(int argc, char* argv[]) { auto function = [](int a) -> int { std::cout << "inside: " << a * 10 << std::endl; return a*10; }; realtime_utilities::tasks tasks; std::vector< std::future<int> > res; for(size_t i=0; i<11; i++) { auto f = std::bind(function, i); res.push_back( tasks.queue(f) ); } tasks.start(5); tasks.finish(); for(auto & ret : res) { std::cout << ret.get() << std::endl; } return 0; }
16.909091
51
0.577061
CNR-STIIMA-IRAS
4be47a3fabc9d5d911f771eb6cb2bb882b0a1c4b
1,641
cpp
C++
USACOClassGold/src/pumping.cpp
javaarchive/USACOClass2020
4ae563014b9b2da3e1361e175d38e72308a8da89
[ "MIT" ]
null
null
null
USACOClassGold/src/pumping.cpp
javaarchive/USACOClass2020
4ae563014b9b2da3e1361e175d38e72308a8da89
[ "MIT" ]
null
null
null
USACOClassGold/src/pumping.cpp
javaarchive/USACOClass2020
4ae563014b9b2da3e1361e175d38e72308a8da89
[ "MIT" ]
null
null
null
#include <iostream> #include <queue> #include <vector> #define MAXNODES 1001 using namespace std; int graph[MAXNODES][MAXNODES] = {0}; int flowage[MAXNODES][MAXNODES] = {0}; int minDist[1001]; int minFlow[1001]; int N,M; int dijkstra(int minflow){ fill(minDist, minDist + MAXNODES, INT32_MAX); priority_queue<pair<int,int>, vector<pair<int,int>>, greater<pair<int,int>>> next; next.push(make_pair(0,N)); minDist[N] = 0; minFlow[N] = INT32_MAX; while(!next.empty()){ pair<int,int> curPair = next.top(); int dist = curPair.first; int node = curPair.second; next.pop(); for(int i = 0; i <= N; i ++){ if(graph[node][i] == 0){ continue; } if(flowage[node][i] >= minflow && (dist + graph[node][i]) < minDist[i]){ int newDist = dist + graph[node][i]; next.push(make_pair(newDist, i)); minDist[i] = newDist; minFlow[i] = min(minFlow[node], flowage[node][i]); } } } /*for(int i = 0; i <= N; i ++){ cout << i << ": " << minFlow[i]<<"/"<<minDist[i] << endl; }*/ return ((double) minFlow[1]/minDist[1])*1000000; } int main(int argc, const char** argv) { cin >> N >> M; for(int i = 0; i < M; i ++){ int a,b,cost,flow; cin >> a >> b >> cost >> flow; graph[a][b] = cost; graph[b][a] = cost; flowage[a][b] = flow; flowage[b][a] = flow; } int best = 0; for(int i = 0; i < 1001; i ++){ best = max(dijkstra(i),best); } cout << best; return 0; }
28.789474
86
0.502133
javaarchive
4be50ea6ef605ffa178a85342c9564c37ca331df
2,240
cpp
C++
src/runtime/base/memory/sweepable.cpp
jizillon/hiphop-php
d3ba41757e2c50797827a5f68b7fb7b43974ed7a
[ "PHP-3.01", "Zend-2.0" ]
null
null
null
src/runtime/base/memory/sweepable.cpp
jizillon/hiphop-php
d3ba41757e2c50797827a5f68b7fb7b43974ed7a
[ "PHP-3.01", "Zend-2.0" ]
null
null
null
src/runtime/base/memory/sweepable.cpp
jizillon/hiphop-php
d3ba41757e2c50797827a5f68b7fb7b43974ed7a
[ "PHP-3.01", "Zend-2.0" ]
null
null
null
/* +----------------------------------------------------------------------+ | HipHop for PHP | +----------------------------------------------------------------------+ | Copyright (c) 2010 Facebook, Inc. (http://www.facebook.com) | +----------------------------------------------------------------------+ | This source file is subject to version 3.01 of the PHP license, | | that is bundled with this package in the file LICENSE, and is | | available through the world-wide-web at the following url: | | http://www.php.net/license/3_01.txt | | If you did not receive a copy of the PHP license and are unable to | | obtain it through the world-wide-web, please send a note to | | license@php.net so we can mail you a copy immediately. | +----------------------------------------------------------------------+ */ #include <runtime/base/memory/sweepable.h> #include <runtime/base/memory/memory_manager.h> #include <util/logger.h> namespace HPHP { /////////////////////////////////////////////////////////////////////////////// IMPLEMENT_THREAD_LOCAL(Sweepable::SweepData, Sweepable::s_sweep_data); void Sweepable::SweepAll() { s_sweep_data->sweeping = true; SweepableSet &sweepables = s_sweep_data->sweepables; SweepableSet persistentObjects; for (SweepableSet::iterator iter = sweepables.begin(); iter != sweepables.end(); ++iter) { Sweepable *obj = *iter; if (obj->m_persistentCount == 0) { obj->sweep(); } else { persistentObjects.insert(obj); } } sweepables.clear(); if (!persistentObjects.empty()) { sweepables = persistentObjects; } s_sweep_data->sweeping = false; } Sweepable::Sweepable() : m_persistentCount(0) { if (MemoryManager::TheMemoryManager()->afterCheckpoint()) { s_sweep_data->sweepables.insert(this); } } Sweepable::~Sweepable() { if (!s_sweep_data->sweeping) { s_sweep_data->sweepables.erase(this); } } void Sweepable::unregister() { s_sweep_data->sweepables.erase(this); } /////////////////////////////////////////////////////////////////////////////// }
34.461538
79
0.501786
jizillon
4be8d1e71cbb426494f6eee0c2a282471967cdf7
6,388
cpp
C++
src/plugins/xerces/serializer.cpp
mirunix/libelektra
a808874567b2c0c823f7619fa72078d89802bca1
[ "BSD-3-Clause" ]
null
null
null
src/plugins/xerces/serializer.cpp
mirunix/libelektra
a808874567b2c0c823f7619fa72078d89802bca1
[ "BSD-3-Clause" ]
1
2019-06-25T11:54:12.000Z
2019-06-25T11:54:12.000Z
src/plugins/xerces/serializer.cpp
mirunix/libelektra
a808874567b2c0c823f7619fa72078d89802bca1
[ "BSD-3-Clause" ]
1
2021-07-06T18:09:20.000Z
2021-07-06T18:09:20.000Z
/** * @file * * @brief serialization implementation for xerces plugin * * @copyright BSD License (see LICENSE.md or https://www.libelektra.org) */ #include "serializer.hpp" #include "util.hpp" #include <xercesc/dom/DOM.hpp> #include <xercesc/framework/LocalFileFormatTarget.hpp> #include <map> #include <kdbease.h> #include <kdblogger.h> #include <key.hpp> XERCES_CPP_NAMESPACE_USE using namespace std; using namespace kdb; using namespace xerces; namespace { DOMElement * findChildWithName (DOMNode const & elem, string const & name) { for (auto child = elem.getFirstChild (); child != NULL; child = child->getNextSibling ()) { if (DOMNode::ELEMENT_NODE == child->getNodeType ()) { DOMElement * childElem = dynamic_cast<DOMElement *> (child); if (name == toStr (childElem->getNodeName ())) return childElem; } } return nullptr; } // the name parameter is only used in debug mode for logging, not in production, so we suppress the warning void key2xml (DOMDocument & doc, DOMElement & elem, string const & name ELEKTRA_UNUSED, Key const & key) { ELEKTRA_LOG_DEBUG ("updating element %s", name.c_str ()); // key value = element value if (!key.get<string> ().empty ()) { ELEKTRA_LOG_DEBUG ("creating text for element %s: %s", name.c_str (), key.get<string> ().c_str ()); elem.appendChild (doc.createTextNode (asXMLCh (key.get<string> ()))); } // meta keys = attributes Key itKey = key.dup (); // We can't use nextMeta on const key itKey.rewindMeta (); while (Key const & meta = itKey.nextMeta ()) { if (meta.getName () != ELEKTRA_XERCES_ORIGINAL_ROOT_NAME) { ELEKTRA_LOG_DEBUG ("creating attribute %s for element %s: %s", meta.getName ().c_str (), name.c_str (), meta.get<string> ().c_str ()); elem.setAttribute (asXMLCh (meta.getName ()), asXMLCh (meta.get<string> ())); } } } DOMElement * prepareArrayNodes (DOMDocument & doc, KeySet const & ks, Key & currentPathKey, bool rootPos, string const & name, string const & actualName, DOMNode * current, map<Key, DOMElement *> & arrays) { if (rootPos) return nullptr; currentPathKey.addBaseName (name); auto it = arrays.find (currentPathKey); Key arrayKey = currentPathKey.dup (); arrayKey.addBaseName ("#"); // now check if its scanned already, if not, scan it and create and map the node elements if (arrays.find (arrayKey) == arrays.end () && it == arrays.end ()) { arrays[arrayKey] = nullptr; // used as a marker not mapped to the DOM for now KeySet arrayKeys = ckdb::elektraArrayGet (currentPathKey.getKey (), ks.getKeySet ()); for (auto ak : arrayKeys) { ELEKTRA_LOG_DEBUG ("Precreating array node %s", ak->getFullName ().c_str ()); DOMElement * arrayNode = doc.createElement (asXMLCh (actualName)); arrays[ak] = arrayNode; current->appendChild (arrayNode); } } return it != arrays.end () ? it->second : nullptr; } void appendKey (DOMDocument & doc, KeySet const & ks, Key const & parentKey, string const & originalRootName, Key const & key, map<Key, DOMElement *> & arrays) { DOMNode * current = &doc; // Find the key's insertion point, creating the path if non existent ELEKTRA_LOG_DEBUG ("serializing key %s", key.getFullName ().c_str ()); // Strip the parentKey, as we use relative paths auto parentName = parentKey.begin (); auto name = key.begin (); while (parentName != --parentKey.end () && name != key.end ()) { parentName++; name++; } if (name == key.end ()) throw XercesPluginException ("Key " + key.getFullName () + " is not under " + parentKey.getFullName ()); // restore original root element name if present const auto rootPos = name; // Now create the path Key currentPathKey = parentKey.dup (); string actualName; DOMElement * child = nullptr; for (; name != key.end (); name++) { actualName = !originalRootName.empty () && name == rootPos ? originalRootName : (*name); // If we are not at the root element we scan for array keys as those need special treatment and use their mapped node DOMElement * arrayChild = prepareArrayNodes (doc, ks, currentPathKey, name == rootPos, *name, actualName, current, arrays); // skip the array part of the path, in xml we can have multiple elements with the same name directly child = arrayChild ? arrayChild : findChildWithName (*current, actualName); if (!child) { ELEKTRA_LOG_DEBUG ("creating path element %s", actualName.c_str ()); child = doc.createElement (asXMLCh (actualName)); current->appendChild (child); } current = child; } // Now we are at the key's insertion point and the last key name part, the loop has already set all our elements if (child) key2xml (doc, *child, actualName, key); } void ks2dom (DOMDocument & doc, Key const & parentKey, KeySet const & ks) { Key root = ks.lookup (parentKey); const string originalRootName = root.hasMeta (ELEKTRA_XERCES_ORIGINAL_ROOT_NAME) ? root.getMeta<string> (ELEKTRA_XERCES_ORIGINAL_ROOT_NAME) : ""; map<Key, DOMElement *> arrays; for (auto const & k : ks) appendKey (doc, ks, parentKey, originalRootName, k, arrays); } } // namespace void xerces::serialize (Key const & parentKey, KeySet const & ks) { if (!parentKey.isValid ()) throw XercesPluginException ("Parent key is invalid"); if (parentKey.get<string> ().empty ()) throw XercesPluginException ("No destination file specified as key value"); ELEKTRA_LOG_DEBUG ("serializing relative to %s to file %s", parentKey.getFullName ().c_str (), parentKey.get<string> ().c_str ()); DOMImplementation * impl = DOMImplementationRegistry::getDOMImplementation (asXMLCh ("Core")); if (impl != NULL) { XercesPtr<DOMDocument> doc (impl->createDocument ()); ks2dom (*doc, parentKey, ks); DOMImplementationLS * implLS = dynamic_cast<DOMImplementationLS *> (impl->getImplementation ()); XercesPtr<DOMLSSerializer> serializer (implLS->createLSSerializer ()); DOMConfiguration * serializerConfig = serializer->getDomConfig (); if (serializerConfig->canSetParameter (XMLUni::fgDOMWRTFormatPrettyPrint, true)) serializerConfig->setParameter (XMLUni::fgDOMWRTFormatPrettyPrint, true); LocalFileFormatTarget targetFile (asXMLCh (parentKey.get<string> ())); XercesPtr<DOMLSOutput> output (implLS->createLSOutput ()); output->setByteStream (&targetFile); serializer->write (doc.get (), output.get ()); } else throw XercesPluginException ("DOMImplementation not available"); }
35.292818
131
0.705385
mirunix
4be954fbaca08908d2211cb51275342e0a13e78c
329
cpp
C++
Tools/file/stdout_2.cpp
liangjisheng/C-Cpp
8b33ba1f43580a7bdded8bb4ce3d92983ccedb81
[ "MIT" ]
5
2019-09-17T09:12:15.000Z
2021-05-29T10:54:39.000Z
Tools/file/stdout_2.cpp
liangjisheng/C-Cpp
8b33ba1f43580a7bdded8bb4ce3d92983ccedb81
[ "MIT" ]
null
null
null
Tools/file/stdout_2.cpp
liangjisheng/C-Cpp
8b33ba1f43580a7bdded8bb4ce3d92983ccedb81
[ "MIT" ]
2
2021-07-26T06:36:12.000Z
2022-01-23T15:20:30.000Z
#include<stdio.h> int main() { char ch; // printf("Please input an character:"); // 上一行代码与下一行代码等价,都是向显示器输出提示 fprintf(stdout,"Please input an character:"); if(fscanf(stdin,"%c",&ch)) printf("The character was:%c\n",ch); else { fprintf(stderr,"Erroe reading an character from stdin!\n"); exit(1); } return 0; }
17.315789
61
0.653495
liangjisheng
4beb6c64baf73a10fe3276a7f04d32df4c6d1d5f
41
hpp
C++
src/boost_config_platform_vms.hpp
miathedev/BoostForArduino
919621dcd0c157094bed4df752b583ba6ea6409e
[ "BSL-1.0" ]
10
2018-03-17T00:58:42.000Z
2021-07-06T02:48:49.000Z
src/boost_config_platform_vms.hpp
miathedev/BoostForArduino
919621dcd0c157094bed4df752b583ba6ea6409e
[ "BSL-1.0" ]
2
2021-03-26T15:17:35.000Z
2021-05-20T23:55:08.000Z
src/boost_config_platform_vms.hpp
miathedev/BoostForArduino
919621dcd0c157094bed4df752b583ba6ea6409e
[ "BSL-1.0" ]
4
2019-05-28T21:06:37.000Z
2021-07-06T03:06:52.000Z
#include <boost/config/platform/vms.hpp>
20.5
40
0.780488
miathedev
4bf6e7dafeccb6e175f2c3feb3b64498ee88439b
809
cpp
C++
src/main.cpp
qubard/chatterino2
bad9d5e521b36fa4657dc544164ed65c8a630f25
[ "MIT" ]
null
null
null
src/main.cpp
qubard/chatterino2
bad9d5e521b36fa4657dc544164ed65c8a630f25
[ "MIT" ]
null
null
null
src/main.cpp
qubard/chatterino2
bad9d5e521b36fa4657dc544164ed65c8a630f25
[ "MIT" ]
null
null
null
#include "BrowserExtension.hpp" #include "RunGui.hpp" #include "singletons/Paths.hpp" #include "singletons/Settings.hpp" #include <QApplication> #include <QStringList> #include <memory> using namespace chatterino; int main(int argc, char **argv) { auto shared = std::make_shared<QString>(); log(std::atomic_is_lock_free(&shared)); QApplication a(argc, argv); // convert char** to QStringList auto args = QStringList(); std::transform(argv + 1, argv + argc, std::back_inserter(args), [&](auto s) { return s; }); // run in gui mode or browser extension host mode if (shouldRunBrowserExtensionHost(args)) { runBrowserExtensionHost(); } else { Paths paths; Settings settings(paths); runGui(a, paths, settings); } }
23.794118
67
0.648949
qubard
4bf7ea3678948cc7b1420406fcee92633bdc1742
6,315
cpp
C++
src/v1/sqlitestatement.cpp
studiofuga/mSqliteCpp
d557d089bef57fd2ec5ece54d79ca8c34fbc6aca
[ "BSD-3-Clause" ]
3
2018-06-25T20:02:26.000Z
2021-07-08T09:38:33.000Z
src/v1/sqlitestatement.cpp
studiofuga/mSqliteCpp
d557d089bef57fd2ec5ece54d79ca8c34fbc6aca
[ "BSD-3-Clause" ]
13
2018-05-05T09:38:39.000Z
2021-03-17T11:48:07.000Z
src/v1/sqlitestatement.cpp
studiofuga/mSqliteCpp
d557d089bef57fd2ec5ece54d79ca8c34fbc6aca
[ "BSD-3-Clause" ]
null
null
null
// // Created by Federico Fuga on 16/12/17. // #include "msqlitecpp/v1/sqlitestatement.h" using namespace sqlite; struct sqlite::SQLiteStatement::Impl { std::weak_ptr<SQLiteStorage> mDb; sqlite3_stmt *stmt = nullptr; }; sqlite::SQLiteStatement::SQLiteStatement() { } sqlite::SQLiteStatement::SQLiteStatement(std::shared_ptr<SQLiteStorage> db, const sqlite::statements::StatementFormatter &stmt) { attach(db,stmt); } sqlite::SQLiteStatement::SQLiteStatement(std::shared_ptr<SQLiteStorage> db, std::string sql) { attach(db,sql); } sqlite::SQLiteStatement::SQLiteStatement(std::shared_ptr<SQLiteStorage> db, const char *sql) { attach(db, sql); } sqlite::SQLiteStatement::~SQLiteStatement() { if (p != nullptr && p->stmt != nullptr) sqlite3_finalize(p->stmt); } sqlite::SQLiteStatement::SQLiteStatement(SQLiteStatement &&) = default; sqlite::SQLiteStatement &SQLiteStatement::operator =(SQLiteStatement &&) = default; void SQLiteStatement::attach(std::shared_ptr<SQLiteStorage> dbm) { init(dbm); } void sqlite::SQLiteStatement::attach(std::shared_ptr<SQLiteStorage> dbm, std::string stmt) { init(dbm); prepare(std::string(stmt)); } void sqlite::SQLiteStatement::attach(std::shared_ptr<SQLiteStorage> db, const sqlite::statements::StatementFormatter &stmt) { init(db); prepare(stmt.string()); } void SQLiteStatement::prepare(const sqlite::statements::StatementFormatter &stmt) { try { prepare(stmt.string()); } catch (sqlite::SQLiteException &x) { std::ostringstream ss; ss << x.what() << ": " << stmt.string(); throw sqlite::SQLiteException(x, ss.str()); } } void SQLiteStatement::init(std::shared_ptr<SQLiteStorage> db) { p = (std::make_unique<Impl>()); p->mDb = db; } void SQLiteStatement::prepare(std::string sql) { auto db = p->mDb.lock(); auto r = sqlite3_prepare_v2(db->handle(), sql.c_str(), -1, &p->stmt, nullptr); if (r != SQLITE_OK) throw SQLiteException(db->handle(), sql); } void SQLiteStatement::bind(size_t idx, std::string value) { auto db = p->mDb.lock(); auto r = sqlite3_bind_text(p->stmt, idx, value.c_str(), value.length(), SQLITE_TRANSIENT); SQLiteException::throwIfNotOk(r,db->handle()); } void SQLiteStatement::bind(size_t idx, unsigned long long value) { auto db = p->mDb.lock(); auto r = sqlite3_bind_int64(p->stmt, idx, value); SQLiteException::throwIfNotOk(r,db->handle()); } void SQLiteStatement::bind(size_t idx, long long value) { auto db = p->mDb.lock(); auto r = sqlite3_bind_int64(p->stmt, idx, value); SQLiteException::throwIfNotOk(r,db->handle()); } void SQLiteStatement::bind(size_t idx, unsigned long value) { auto db = p->mDb.lock(); auto r = sqlite3_bind_int64(p->stmt, idx, value); SQLiteException::throwIfNotOk(r,db->handle()); } void SQLiteStatement::bind(size_t idx, long value) { auto db = p->mDb.lock(); auto r = sqlite3_bind_int64(p->stmt, idx, value); SQLiteException::throwIfNotOk(r,db->handle()); } void SQLiteStatement::bind(size_t idx, unsigned int value) { auto db = p->mDb.lock(); auto r = sqlite3_bind_int(p->stmt, idx, value); SQLiteException::throwIfNotOk(r,db->handle()); } void SQLiteStatement::bind(size_t idx, int value) { auto db = p->mDb.lock(); auto r = sqlite3_bind_int(p->stmt, idx, value); SQLiteException::throwIfNotOk(r,db->handle()); } void SQLiteStatement::bind(size_t idx, double value) { auto db = p->mDb.lock(); auto r = sqlite3_bind_double(p->stmt, idx, value); SQLiteException::throwIfNotOk(r,db->handle()); } void SQLiteStatement::bind(size_t idx, float value) { auto db = p->mDb.lock(); auto r = sqlite3_bind_double(p->stmt, idx, value); SQLiteException::throwIfNotOk(r,db->handle()); } void SQLiteStatement::bind(size_t idx, std::nullptr_t value) { auto db = p->mDb.lock(); auto r = sqlite3_bind_null(p->stmt, idx); SQLiteException::throwIfNotOk(r,db->handle()); } long long SQLiteStatement::getLongValue(int idx) { return sqlite3_column_int64(p->stmt, idx); } unsigned long long SQLiteStatement::getULongValue(int idx) { return sqlite3_column_int64(p->stmt, idx); } int SQLiteStatement::getIntValue(int idx) { return sqlite3_column_int(p->stmt, idx); } double SQLiteStatement::getDoubleValue(int idx) { return sqlite3_column_double(p->stmt, idx); } std::string SQLiteStatement::getStringValue(int idx) { auto sptr = sqlite3_column_text(p->stmt, idx); auto len = sqlite3_column_bytes(p->stmt, idx); return std::string(sptr, sptr + len); } SQLiteStatement::QueryResult SQLiteStatement::executeStep(std::function<bool()> func) { auto db = p->mDb.lock(); auto r = sqlite3_step(p->stmt); if (r == SQLITE_DONE) { return QueryResult::Completed; } else if (r != SQLITE_ROW) { SQLiteException::throwIfNotOk(r, db->handle()); } return (func() ? QueryResult::Ongoing : QueryResult::Aborted); } SQLiteStatement::QueryResult SQLiteStatement::executeStep() { return executeStep([]() { return true; }); } FieldType::Type SQLiteStatement::columnType(int idx) { switch (sqlite3_column_type(p->stmt, idx)) { case SQLITE_TEXT: return FieldType::Type::Text; case SQLITE_INTEGER: return FieldType::Type::Integer; case SQLITE_FLOAT: return FieldType::Type::Real; case SQLITE_BLOB: return FieldType::Type::Blob; } throw std::runtime_error("Unhandled sqlite3 type"); } bool SQLiteStatement::isNull(int idx) { return sqlite3_column_type(p->stmt, idx) == SQLITE_NULL; } int SQLiteStatement::columnCount() { return sqlite3_column_count(p->stmt); } bool SQLiteStatement::execute(std::function<bool()> function) { QueryResult result; try { while ((result = executeStep(function)) == SQLiteStatement::QueryResult::Ongoing); } catch (SQLiteException &) { sqlite3_reset(p->stmt); // Reset the statement before throwing again throw; } sqlite3_reset(p->stmt); sqlite3_clear_bindings(p->stmt); return result == SQLiteStatement::QueryResult::Completed; } bool SQLiteStatement::execute() { return execute([]() { return true; }); }
25.566802
118
0.674426
studiofuga
4bf9864a0b2f25c58c34a2e167cfd34a581da93e
1,053
cpp
C++
Leetcode/Random Questions/Easy/MajorityElement.cpp
Snehakri022/Competitive-Programming-Solutions
62a2cbb2d71a040d81e3e71ad6353a86007b8cb7
[ "MIT" ]
40
2020-07-25T19:35:37.000Z
2022-01-28T02:57:02.000Z
Leetcode/Random Questions/Easy/MajorityElement.cpp
Snehakri022/Competitive-Programming-Solutions
62a2cbb2d71a040d81e3e71ad6353a86007b8cb7
[ "MIT" ]
160
2021-04-26T19:04:15.000Z
2022-03-26T20:18:37.000Z
Leetcode/Random Questions/Easy/MajorityElement.cpp
Snehakri022/Competitive-Programming-Solutions
62a2cbb2d71a040d81e3e71ad6353a86007b8cb7
[ "MIT" ]
24
2020-05-03T08:11:53.000Z
2021-10-04T03:23:20.000Z
class Solution { public: int majorityElement(vector<int>& nums) { int cnt = 0, res; for(int i=0; i<nums.size(); i++) { if(cnt == 0) res = nums[i]; if(res == nums[i]) ++cnt; else --cnt; } return res; } }; // Time Complexity - O(n) // Space Complexity - O(1) class Solution { public: int majorityElement(vector<int>& nums) { unordered_map <int, int> s; for(int i=0; i<nums.size(); i++) { s[nums[i]] += 1; } int count = 0; int value = 0; for(auto x: s) if(count < x.second) { count = x.second; value = x.first; } return value; } }; // Time Complexity - O(n) // Space Complexity - O(n) class Solution { public: int majorityElement(vector<int>& nums) { sort(nums.begin(), nums.end()); return nums[nums.size()/2]; } }; // Time Complexity - O(nlogn) // Space Complexity - O(1)
19.867925
44
0.458689
Snehakri022
ef042e8b371aad1b5c30e9b16df40b0c48210aad
2,630
cpp
C++
updater/src/Extractor.cpp
debugzxcv/unnamed-sdvx-clone
ceedc21666b2597551324714b536d2478a584200
[ "MIT" ]
null
null
null
updater/src/Extractor.cpp
debugzxcv/unnamed-sdvx-clone
ceedc21666b2597551324714b536d2478a584200
[ "MIT" ]
null
null
null
updater/src/Extractor.cpp
debugzxcv/unnamed-sdvx-clone
ceedc21666b2597551324714b536d2478a584200
[ "MIT" ]
null
null
null
#include "Extractor.hpp" #include <iostream> #include <stdexcept> #include "archive.h" #include "archive_entry.h" void Extractor::Extract(const std::string_view data) { struct archive* src = CreateRead(data); struct archive* dst = CreateDiskWrite(); try { CopyArchive(src, dst); } catch (...) { archive_read_free(src); archive_write_free(dst); throw; } archive_read_free(src); archive_write_free(dst); } archive* Extractor::CreateRead(const std::string_view data) { struct archive* a = archive_read_new(); archive_read_support_format_all(a); archive_read_support_compression_all(a); if (int r = archive_read_open_memory(a, data.data(), data.size())) { archive_read_free(a); throw std::runtime_error("Failed to open the archive."); } return a; } archive* Extractor::CreateDiskWrite() { int flags = 0; flags |= ARCHIVE_EXTRACT_TIME; flags |= ARCHIVE_EXTRACT_ACL; flags |= ARCHIVE_EXTRACT_FFLAGS; flags |= ARCHIVE_EXTRACT_SECURE_NODOTDOT; flags |= ARCHIVE_EXTRACT_SECURE_SYMLINKS; struct archive* a = archive_write_disk_new(); archive_write_disk_set_options(a, flags); archive_write_disk_set_standard_lookup(a); return a; } // https://github.com/libarchive/libarchive/wiki/Examples#a-complete-extractor static void WarnOrThrow(int code, archive* a, int throw_level) { if (code < throw_level) throw std::runtime_error(archive_error_string(a)); if (code < ARCHIVE_OK) { std::cerr << "- Warning: " << archive_error_string(a) << std::endl; } } void Extractor::CopyArchive(archive* src, archive* dst) { struct archive_entry* entry = nullptr; for (;;) { int r = archive_read_next_header(src, &entry); if (r == ARCHIVE_EOF) break; if (r < ARCHIVE_WARN) throw std::runtime_error(archive_error_string(src)); std::cout << "Extracting \"" << archive_entry_pathname(entry) << "\"..." << std::endl; if (r < ARCHIVE_OK) { std::cerr << "- Warning: " << archive_error_string(src) << std::endl; } r = archive_write_header(dst, entry); if (r < ARCHIVE_OK) { std::cerr << "- Warning: " << archive_error_string(dst) << std::endl; } else if (archive_entry_size(entry) > 0) { CopyArchiveData(src, dst); } } } void Extractor::CopyArchiveData(archive* src, archive* dst) { int r; const void* buff; size_t size; la_int64_t offset; for (;;) { r = archive_read_data_block(src, &buff, &size, &offset); if (r == ARCHIVE_EOF) break; WarnOrThrow(r, src, ARCHIVE_OK); r = archive_write_data_block(dst, buff, size, offset); WarnOrThrow(r, dst, ARCHIVE_OK); } r = archive_write_finish_entry(dst); WarnOrThrow(r, dst, ARCHIVE_WARN); }
21.209677
88
0.70038
debugzxcv
ef057c271c7c3e886c6e16f0050b8190a0e3ba37
7,451
cpp
C++
YAX/src/Vector4.cpp
Swillis57/YAX
cc366b99af9bbce1d1a3a3580fad9f6c50bbfb4e
[ "MS-PL" ]
1
2015-01-29T01:58:56.000Z
2015-01-29T01:58:56.000Z
YAX/src/Vector4.cpp
Swillis57/YAX
cc366b99af9bbce1d1a3a3580fad9f6c50bbfb4e
[ "MS-PL" ]
1
2015-03-27T11:21:08.000Z
2015-03-27T11:21:08.000Z
YAX/src/Vector4.cpp
Swillis57/YAX
cc366b99af9bbce1d1a3a3580fad9f6c50bbfb4e
[ "MS-PL" ]
null
null
null
#include "Vector4.h" #include "Matrix.h" #include "MathHelper.h" #include "Quaternion.h" #include "Vector2.h" #include "Vector3.h" namespace YAX { const Vector4 One = Vector4(1, 1, 1, 1); const Vector4 UnitX = Vector4(1, 0, 0, 0); const Vector4 UnitY = Vector4(0, 1, 0, 0); const Vector4 UnitZ = Vector4(0, 0, 1, 0); const Vector4 UnitW = Vector4(0, 0, 0, 1); const Vector4 Zero = Vector4(0, 0, 0, 0); Vector4::Vector4() : Vector4(0.0f) {} Vector4::Vector4(float v) : X(v), Y(v), Z(v), W(v) {} Vector4::Vector4(float x, float y, float z, float w) : X(x), Y(y), Z(z), W(w) {} Vector4::Vector4(Vector2 xy, float z, float w) : Vector4(xy.X, xy.Y, z, w) {} Vector4::Vector4(Vector3 xyz, float w) : Vector4(xyz.X, xyz.Y, xyz.Z, w) {} void Vector4::Normalize() { *this /= this->Length(); } float Vector4::Length() { return std::sqrtf(LengthSquared()); } float Vector4::LengthSquared() { return X*X + Y*Y + Z*Z + W*W; } Vector4 Vector4::Barycentric(const Vector4& p1, const Vector4& p2, const Vector4& p3, float b2, float b3) { return (1 - b2 - b3)*p1 + b2*p2 + b3*p3; } Vector4 Vector4::CatmullRom(const Vector4& p1, const Vector4& p2, const Vector4& p3, const Vector4& p4, float t) { return Vector4(MathHelper::CatmullRom(p1.X, p2.X, p3.X, p4.X, t), MathHelper::CatmullRom(p1.Y, p2.Y, p3.Y, p4.Y, t), MathHelper::CatmullRom(p1.Z, p2.Z, p3.Z, p4.Z, t), MathHelper::CatmullRom(p1.W, p2.W, p3.W, p4.W, t)); } Vector4 Vector4::Clamp(const Vector4& val, const Vector4& min, const Vector4& max) { return Vector4(MathHelper::Clamp(val.X, min.X, max.X), MathHelper::Clamp(val.X, min.X, max.X), MathHelper::Clamp(val.X, min.X, max.X), MathHelper::Clamp(val.X, min.X, max.X)); } float Vector4::Distance(const Vector4& p1, const Vector4& p2) { return std::sqrtf(DistanceSquared(p1, p2)); } float Vector4::DistanceSquared(const Vector4& p1, const Vector4& p2) { return (p1 - p2).LengthSquared(); } float Vector4::Dot(const Vector4& v1, const Vector4& v2) { return (v1.X*v2.X + v1.Y*v2.Y + v1.Z*v2.Z + v1.W*v2.W); } Vector4 Vector4::Hermite(const Vector4& p1, const Vector4& t1, const Vector4& p2, const Vector4& t2, float amt) { return Vector4(MathHelper::Hermite(p1.X, t1.X, p2.X, t2.X, amt), MathHelper::Hermite(p1.Y, t1.Y, p2.Y, t2.Y, amt), MathHelper::Hermite(p1.Z, t1.Z, p2.Z, t2.Z, amt), MathHelper::Hermite(p1.W, t1.W, p2.W, t2.W, amt)); } Vector4 Vector4::Lerp(const Vector4& f, const Vector4& to, float t) { return Vector4(MathHelper::Lerp(f.X, to.X, t), MathHelper::Lerp(f.Y, to.Y, t), MathHelper::Lerp(f.Z, to.Z, t), MathHelper::Lerp(f.W, to.W, t)); } Vector4 Vector4::Max(const Vector4& v1, const Vector4& v2) { return Vector4(MathHelper::Max(v1.X, v2.X), MathHelper::Max(v1.Y, v2.Y), MathHelper::Max(v1.Z, v2.Z), MathHelper::Max(v1.W, v2.W)); } Vector4 Vector4::Min(const Vector4& v1, const Vector4& v2) { return Vector4(MathHelper::Min(v1.X, v2.X), MathHelper::Min(v1.Y, v2.Y), MathHelper::Min(v1.Z, v2.Z), MathHelper::Min(v1.W, v2.W)); } Vector4 Vector4::Normalize(Vector4 v) { v.Normalize(); return v; } Vector4 Vector4::SmoothStep(const Vector4& f, const Vector4& to, float t) { return Vector4(MathHelper::SmoothStep(f.X, to.X, t), MathHelper::SmoothStep(f.Y, to.Y, t), MathHelper::SmoothStep(f.Z, to.Z, t), MathHelper::SmoothStep(f.W, to.W, t)); } Vector4 Vector4::Transform(const Vector4& v, const Matrix& m) { float x = v.X*m.M11 + v.Y*m.M21 + v.Z*m.M31 + v.W*m.M41; float y = v.X*m.M12 + v.Y*m.M22 + v.Z*m.M32 + v.W*m.M42; float z = v.X*m.M13 + v.Y*m.M23 + v.Z*m.M33 + v.W*m.M43; float w = v.X*m.M14 + v.Y*m.M24 + v.Z*m.M34 + v.W*m.M44; return Vector4(x, y, z, w); } Vector4 Vector4::Transform(const Vector4& v, const Quaternion& q) { Quaternion vQ(v.X, v.Y, v.Z, v.W); Quaternion res = q*vQ*Quaternion::Inverse(q); return Vector4(res.X, res.Y, res.Z, res.W); } void Vector4::Transform(const std::vector<Vector4>& source, i32 sourceIdx, const Matrix& mat, std::vector<Vector4>& dest, i32 destIdx, i32 count) { for (i32 i = sourceIdx; i < sourceIdx + count; i++) { dest[destIdx + (i - sourceIdx)] = Transform(source[i], mat); } } void Vector4::Transform(const std::vector<Vector4>& source, i32 sourceIdx, const Quaternion& q, std::vector<Vector4>& dest, i32 destIdx, i32 count) { for (i32 i = sourceIdx; i < sourceIdx + count; i++) { dest[destIdx + (i - sourceIdx)] = Transform(source[i], q); } } void Vector4::Transform(const std::vector<Vector4>& source, const Matrix& mat, std::vector<Vector4>& dest) { Transform(source, 0, mat, dest, 0, source.size()); } void Vector4::Transform(const std::vector<Vector4>& source, const Quaternion& q, std::vector<Vector4>& dest) { Transform(source, 0, q, dest, 0, source.size()); } Vector4 Vector4::TransformNormal(const Vector4& norm, const Matrix& mat) { float x = norm.X*mat.M11 + norm.Y*mat.M21 + norm.Z*mat.M31; float y = norm.X*mat.M12 + norm.Y*mat.M22 + norm.Z*mat.M32; float z = norm.X*mat.M13 + norm.Y*mat.M23 + norm.Z*mat.M33; float w = norm.X*mat.M14 + norm.Y*mat.M24 + norm.Z*mat.M34; return Vector4(x, y, z, 0); } void Vector4::TransformNormal(const std::vector<Vector4>& source, i32 sourceIdx, const Matrix& mat, std::vector<Vector4>& dest, i32 destIdx, i32 count) { for (i32 i = sourceIdx; i < sourceIdx + count; i++) { dest[destIdx + (i - sourceIdx)] = TransformNormal(source[i], mat); } } void Vector4::TransformNormal(const std::vector<Vector4>& source, const Matrix& mat, std::vector<Vector4>& dest) { TransformNormal(source, 0, mat, dest, 0, source.size()); } Vector4& Vector4::operator+=(const Vector4& v) { X += v.X; Y += v.Y; Z += v.Z; W += v.W; return *this; } Vector4& Vector4::operator-=(const Vector4& v) { X /= v.X; Y /= v.Y; Z /= v.Z; W /= v.W; return *this; } Vector4& Vector4::operator*=(const Vector4& v) { X *= v.X; Y *= v.Y; Z *= v.Z; W *= v.W; return *this; } Vector4& Vector4::operator*=(float f) { X *= f; Y *= f; Z *= f; W *= f; return *this; } Vector4& Vector4::operator/=(const Vector4& v) { X /= v.X; Y /= v.Y; Z /= v.Z; W /= v.W; return *this; } Vector4& Vector4::operator/=(float f) { X /= f; Y /= f; Z /= f; W /= f; return *this; } Vector4 operator+(Vector4 lhs, const Vector4& rhs) { lhs += rhs; return lhs; } Vector4 operator-(Vector4 lhs, const Vector4& rhs) { lhs -= rhs; return lhs; } Vector4 operator*(Vector4 lhs, const Vector4& rhs) { lhs *= rhs; return lhs; } Vector4 operator*(float lhs, Vector4 rhs) { rhs *= lhs; return rhs; } Vector4 operator*(Vector4 lhs, float rhs) { return rhs*lhs; } Vector4 operator/(Vector4 lhs, const Vector4& rhs) { lhs /= rhs; return lhs; } Vector4 operator/(Vector4 lhs, float rhs) { lhs /= rhs; return lhs; } Vector4 operator-(Vector4 rhs) { rhs.X = -rhs.X; rhs.Y = -rhs.Y; rhs.Z = -rhs.Z; rhs.W = -rhs.W; return rhs; } bool operator==(const Vector4& lhs, const Vector4& rhs) { return lhs.X == rhs.X && lhs.Y == rhs.Y && lhs.Z == rhs.Z && lhs.W == rhs.W; } bool operator!=(const Vector4& lhs, const Vector4& rhs) { return !(lhs == rhs); } }
23.357367
152
0.610522
Swillis57
ef086a03619f9cb0f6fcd0eef3e57c5dcc570252
2,494
cpp
C++
CGImysql/sql_connection_pool.cpp
luanshaaa/http-WebServer
0cf64b5e7c9d41325148b6aa398d6bcec448b76b
[ "Apache-2.0" ]
1
2021-09-20T01:26:51.000Z
2021-09-20T01:26:51.000Z
CGImysql/sql_connection_pool.cpp
luanshaaa/http-WebServer
0cf64b5e7c9d41325148b6aa398d6bcec448b76b
[ "Apache-2.0" ]
null
null
null
CGImysql/sql_connection_pool.cpp
luanshaaa/http-WebServer
0cf64b5e7c9d41325148b6aa398d6bcec448b76b
[ "Apache-2.0" ]
null
null
null
// // sql_connection_pool.cpp // // // Created by apple on 8/18/21. // #include <stdio.h> connection_pool::connection_pool() { this->CurConn=0; this->FreeConn=0; } //RAII机制销毁连接池 connection_pool::~connection_pool() { DestroyPool(); } //构造初始化 void connection_pool::init(string url, string User,string PassWord, string DBName, int Port, unsigned int MaxConn) { //初始化数据库信息 this->url=url; this->Port=Port; this->User=User; this->PassWord=PassWord; this->DatabaseName=DBName; //创建MaxConn条数据库连接 for(int i=0;i<MaxConn;i++) { MYSQL *con=NULL; con=mysql_init(con); if(con==NULL) { cout<<"Error:"<<mysql_error(con); exit(1); } con=mysql_real_connect(con,url.c_str(),User.c_str(),PassWord.c_str(),DBName.c_str(),Port,NULL,0); if(con==NULL) { cout<<"Error: "<<mysql_error(con); exit(1); } //更新连接池和空闲连接数量 connList.push_back(con); ++FreeConn; } //将信号量初始化为最大连接次数 reserve=sem(FreeConn); this->MaxConn=FreeConn; } //当有请求时,从数据库连接池中返回一个可用连接,更新使用和空闲连接数 MYSQL *connection_pool::GetConnection() { MYSQL *con=NULL; if(0==connlist.size()) return NULL; //取出连接,信号量原子减1,为0则等待 reserve.wait(); lock.lock(); con=connList.front(); connList.pop_front(); //这里的两个变量没有用到 --FreeConn; ++CurConn; lock.unlock(); return con; } //释放当前使用的连接 bool connection_pool::ReleaseConnection(MYSQL *con) { if(con==NULL) return false; lock.lock(); connList.push_back(con); ++FreeConn; --CurConn; lock.unlock(); //释放连接原子加1 reserve.post(); return true; } //销毁数据库连接池 void connection_pool::DestroyPool() { lock.lock(); if(connList.size()>0) { //通过迭代器遍历,关闭数据库连接 list<MYSQL *>::iterator it; for(it=connList.begin();it!=connList.end();++it) { MYSQL *con=*it; mysql_close(con); } CurConn=0; FreeConn=0; //清空list connList.clear(); lock.unlock(); } lock.unlock(); } connectionRAII::connectionRAII(MYSQL **SQL,connection_pool *connPool) { *SQL=connPool->GetConnection(); conRAII=*SQL; poolRAII=connPool; } connectionRAII::~connectionRAII() { poolRAII->ReleaseConnection(conRAII); }
17.56338
114
0.556937
luanshaaa
ef0eac238d569447382aa06fe75a6fa29ba0979b
3,588
cc
C++
src/solv_simple/restarts.cc
nerdling/SBSAT
6328c6aa105b75693d06bf0dae4a3b5ca220318b
[ "Unlicense" ]
4
2015-03-08T07:56:29.000Z
2017-10-12T04:19:27.000Z
src/solv_simple/restarts.cc
nerdling/SBSAT
6328c6aa105b75693d06bf0dae4a3b5ca220318b
[ "Unlicense" ]
null
null
null
src/solv_simple/restarts.cc
nerdling/SBSAT
6328c6aa105b75693d06bf0dae4a3b5ca220318b
[ "Unlicense" ]
null
null
null
/* =========FOR INTERNAL USE ONLY. NO DISTRIBUTION PLEASE ========== */ /********************************************************************* Copyright 1999-2007, University of Cincinnati. All rights reserved. By using this software the USER indicates that he or she has read, understood and will comply with the following: --- University of Cincinnati hereby grants USER nonexclusive permission to use, copy and/or modify this software for internal, noncommercial, research purposes only. Any distribution, including commercial sale or license, of this software, copies of the software, its associated documentation and/or modifications of either is strictly prohibited without the prior consent of University of Cincinnati. Title to copyright to this software and its associated documentation shall at all times remain with University of Cincinnati. Appropriate copyright notice shall be placed on all software copies, and a complete copy of this notice shall be included in all copies of the associated documentation. No right is granted to use in advertising, publicity or otherwise any trademark, service mark, or the name of University of Cincinnati. --- This software and any associated documentation is provided "as is" UNIVERSITY OF CINCINNATI MAKES NO REPRESENTATIONS OR WARRANTIES, EXPRESS OR IMPLIED, INCLUDING THOSE OF MERCHANTABILITY OR FITNESS FOR A PARTICULAR PURPOSE, OR THAT USE OF THE SOFTWARE, MODIFICATIONS, OR ASSOCIATED DOCUMENTATION WILL NOT INFRINGE ANY PATENTS, COPYRIGHTS, TRADEMARKS OR OTHER INTELLECTUAL PROPERTY RIGHTS OF A THIRD PARTY. University of Cincinnati shall not be liable under any circumstances for any direct, indirect, special, incidental, or consequential damages with respect to any claim by USER or any third party on account of or arising from the use, or inability to use, this software or its associated documentation, even if University of Cincinnati has been advised of the possibility of those damages. *********************************************************************/ #include "sbsat.h" #include "sbsat_solver.h" #include "solver.h" int use_RapidRestarts; void (*Simple_initRestart)() = NULL; long (*Simple_nextRestart)() = NULL; //These routines modeled off of SAT4J code posted here: //http://www.satcompetition.org/gorydetails/?p=3 //Routines for MiniSAT style restarts long MiniSAT_RestartBound; void MiniSAT_initRestart() { MiniSAT_RestartBound = 100; } long MiniSAT_nextRestart() { return MiniSAT_RestartBound *= 1.5; } //----------------------------------- //Routines for PicoSAT style restarts double PicoSAT_inner, PicoSAT_outer; long PicoSAT_RestartBound; void PicoSAT_initRestart() { PicoSAT_inner = 100; PicoSAT_outer = 100; PicoSAT_RestartBound = PicoSAT_inner; } long PicoSAT_nextRestart() { if (PicoSAT_inner >= PicoSAT_outer) { PicoSAT_outer *= 1.1; PicoSAT_inner = 100; } else { PicoSAT_inner *= 1.1; } return PicoSAT_inner; } //----------------------------------- //Routines for Luby style restarts //taken from SATZ_rand source code long Luby_factor; long Luby_count; long luby_super(long i) { long power; long k; assert (i > 0); /* let 2^k be the least power of 2 >= (i+1) */ k = 1; power = 2; while (power < (i + 1)) { k += 1; power *= 2; } if (power == (i + 1)) return (power / 2); return (luby_super(i - (power / 2) + 1)); } void Luby_initRestart() { Luby_factor = 512;//32; Luby_count = 1; } long Luby_nextRestart() { return luby_super(Luby_count++)*Luby_factor; } //-----------------------------------
29.652893
76
0.698997
nerdling
ef1232f9fdd43727761e20d6f30d761879cc5982
8,361
cpp
C++
lab1/debug-exercise/abc.cpp
karl97/KompilatorerLabbz
761f0536582050cb245972f6fd9a612e8d1a570f
[ "Apache-2.0" ]
null
null
null
lab1/debug-exercise/abc.cpp
karl97/KompilatorerLabbz
761f0536582050cb245972f6fd9a612e8d1a570f
[ "Apache-2.0" ]
null
null
null
lab1/debug-exercise/abc.cpp
karl97/KompilatorerLabbz
761f0536582050cb245972f6fd9a612e8d1a570f
[ "Apache-2.0" ]
null
null
null
// ------------------------------------------ // File abc.cc // ------------------------------------------ #include <string> #include "a.h" #include "abscissa.h" #include "absurdum.h" #include "ack.h" #include "abc.h" // ------------------------------------------ int* allafall(int fasa, std::string* fast) { if (fasa > 3 || *fast == "fastighetsbeskattning") return new int (26703); int fasta = fasa + 1; std::string fatt("fauna"); int fattning = aning(&fasta, fatt); std::string feedback("felhantering"); int feldetektering = anslutningspropp(&fasta, feedback); std::string felskrivning("fem"); int felstavning = alltnog(&fasta, felskrivning); std::string* femma = new std::string("fena"); std::string femte = almanacka(fasta, femma); std::string fetstil("fickplunta"); int ficka = annars(&fasta, fetstil); int* filaccessbeordring = new int(5808); return filaccessbeordring; } // allafall // ------------------------------------------ std::string* allah(int* filmkamera, std::string filt) { if (*filmkamera > 4 || filt == "finansiering") return new std::string("fink"); int filtrering = *filmkamera + 1; std::string finka("finnas"); int finland = annanstans(&filtrering, finka); std::string finnes("firma"); int finns = aning(&filtrering, finnes); std::string* fisk = new std::string("flagga"); std::string fixering = antagligen(filtrering, fisk); std::string* flamma = new std::string("flaskhals"); std::string flaska = anmaning(filtrering, flamma); std::string flicka("flinga"); std::string* flik = anledning(&filtrering, flicka); std::string* flisa = new std::string("floppydisk"); std::string flock = almanacka(filtrering, flisa); std::string flora("fluga"); std::string* flotta = anordning(&filtrering, flora); std::string* flygning = new std::string("flyttning"); return flygning; } // allah // ------------------------------------------ int* alldeles(int fogde, std::string* folkskola) { if (fogde > 6 || *folkskola == "form") return new int (18247); int fordring = fogde + 1; std::string* formalisering = new std::string("formelbehandling"); int* formattering = anno(fordring, formalisering); std::string* formligen = new std::string("forntida"); int* formulering = allokering(fordring, formligen); std::string* forskning = new std::string("fortfarande"); int* fortbildning = aftonsol(fordring, forskning); std::string fortplantning("fortvarande"); std::string* forts = alltihop(&fordring, fortplantning); std::string fotboll("fotokopia"); int fotogenlampa = annanstans(&fordring, fotboll); std::string fotostatkopiering("frammatning"); int frack = anslutningspropp(&fordring, fotostatkopiering); int* framme = new int(29088); return framme; } // alldeles // ------------------------------------------ std::string* allehanda(int* framsida, std::string framtagning) { if (*framsida > 6 || framtagning == "frost") return new std::string("frukost"); int fredag = *framsida + 1; std::string* frys = new std::string("fullo"); std::string fuga = al(fredag, frys); std::string fundering("funktionsuppdelning"); std::string* funktionsbeskrivning = alltsammans(&fredag, fundering); std::string* funnits = new std::string("fy"); std::string futurum = alltid(fredag, funnits); std::string fyllning("fyra"); int fyr = allena(&fredag, fyllning); std::string g("gamling"); std::string* gam = allehanda(&fredag, g); std::string gammal("ganska"); std::string* gammalt = anordning(&fredag, gammal); std::string* gata = new std::string("gatsten"); return gata; } // allehanda // ------------------------------------------ int allena(int* genast, std::string genaste) { if (*genast > 3 || genaste == "generering") return 27589; int generalisering = *genast + 1; std::string* gentemot = new std::string("gissning"); int* gerilla = allafall(generalisering, gentemot); std::string* gissningsvis = new std::string("givetvis"); int* giv = alltmer(generalisering, gissningsvis); std::string* glada = new std::string("glaskupa"); int* glansis = allafall(generalisering, glada); std::string glass("glidning"); int glest = allena(&generalisering, glass); std::string glimt("gloria"); std::string* glipa = alltihop(&generalisering, glimt); std::string* gnista = new std::string("godan"); int* gnutta = anno(generalisering, gnista); std::string* goddagens = new std::string("goja"); std::string goding = almanacka(generalisering, goddagens); std::string* gol = new std::string("golfklubb"); int* golfbana = allafall(generalisering, gol); std::string golfklubba("golvspringa"); std::string* golvlampa = alfa(&generalisering, golfklubba); int grabb(1092); return grabb; } // allena // ------------------------------------------ int allesammans(int* gradering, std::string grammofonskiva) { if (*gradering > 5 || grammofonskiva == "grandessa") return 12390; int gran = *gradering + 1; std::string* grandeur = new std::string("grattis"); std::string granskning = anmaning(gran, grandeur); std::string grav("grekiska"); std::string* grejor = alfa(&gran, grav); std::string* gren = new std::string("grill"); int* grevinna = anhopning(gran, gren); std::string grind("groda"); int gris = aha(&gran, grind); std::string* grodd = new std::string("grop"); int* grogg = alltmera(gran, grodd); int grotta(12970); return grotta; } // allesammans // ------------------------------------------ int allihop(int* grundlag, std::string grundskola) { if (*grundlag > 5 || grundskola == "grundval") return 19571; int grundtank = *grundlag + 1; std::string* gruppering = new std::string("gryning"); std::string gruva = al(grundtank, gruppering); std::string* gryta = new std::string("gud"); int* grytbit = alls(grundtank, gryta); std::string gudi("guldgruva"); std::string* gudinna = alfa(&grundtank, gudi); std::string* gumma = new std::string("h"); int* gurka = algebra(grundtank, gumma); std::string* ha = new std::string("haft"); std::string hade = alika(grundtank, ha); int haha(24233); return haha; } // allihop // ------------------------------------------ int* allmoge(int haj, std::string* haka) { if (haj > 3 || *haka == "hals") return new int (11863); int hall = haj + 1; std::string* halshuggning = new std::string("halvannan"); int* halva = ann(hall, halshuggning); std::string halvering("halvsanning"); int halvkugg = allihop(&hall, halvering); std::string* halvt = new std::string("hamn"); int* halvtannat = aftonsol(hall, halvt); std::string* handflata = new std::string("handledning"); int* handha = aj(hall, handflata); std::string* handling = new std::string("handstil"); std::string handskakning = amortering(hall, handling); std::string* hantering = new std::string("harpa"); int* har = allmoge(hall, hantering); int* hatt = new int(25907); return hatt; } // allmoge // ------------------------------------------ int* allokering(int havsyta, std::string* hebreiska) { if (havsyta > 3 || *hebreiska == "hedning") return new int (13192); int hed = havsyta + 1; std::string hej("hela"); std::string* hejsan = ampere(&hed, hej); std::string heller("helst"); int hellre = andel(&hed, heller); std::string hem("hemresa"); int hemma = allteftersom(&hed, hem); std::string herde("hetat"); int hertig = annars(&hed, herde); std::string hexkodning("hink"); int hifi = alltnog(&hed, hexkodning); int* hiss = new int(12388); return hiss; } // allokering // ------------------------------------------ int* allra(int hit, std::string* hittills) { if (hit > 5 || *hittills == "hjord") return new int (9833); int hittillsvarande = hit + 1; std::string* hjort = new std::string("honom"); std::string hon = al(hittillsvarande, hjort); std::string* honung = new std::string("hopkoppling"); int* hop = alltmera(hittillsvarande, honung); std::string* hoppning = new std::string("hopslagning"); int* hoppsan = ande(hittillsvarande, hoppning); std::string* hoptagning = new std::string("hu"); int* hos = allmoge(hittillsvarande, hoptagning); std::string* hud = new std::string("humla"); int* huller = ann(hittillsvarande, hud); int* hund = new int(31313); return hund; } // allra // ------------------------------------------
35.88412
70
0.625045
karl97
ef16aac990f3496622a597797813a9656f0b37bc
5,236
hpp
C++
src/modules/flight_mode_manager/tasks/AutoLineSmoothVel/FlightTaskAutoLineSmoothVel.hpp
CQBIT/Firmware
6a60fba96de255134ac0e021cd1f31c67be95d74
[ "BSD-3-Clause" ]
1
2020-05-29T01:05:18.000Z
2020-05-29T01:05:18.000Z
src/modules/flight_mode_manager/tasks/AutoLineSmoothVel/FlightTaskAutoLineSmoothVel.hpp
ZMurphyy/Firmware
177fe4bade08440a0ae2c2679d5972b8e316ec66
[ "BSD-3-Clause" ]
null
null
null
src/modules/flight_mode_manager/tasks/AutoLineSmoothVel/FlightTaskAutoLineSmoothVel.hpp
ZMurphyy/Firmware
177fe4bade08440a0ae2c2679d5972b8e316ec66
[ "BSD-3-Clause" ]
null
null
null
/**************************************************************************** * * Copyright (c) 2018 PX4 Development Team. All rights reserved. * * Redistribution and use in source and binary forms, with or without * modification, are permitted provided that the following conditions * are met: * * 1. Redistributions of source code must retain the above copyright * notice, this list of conditions and the following disclaimer. * 2. Redistributions in binary form must reproduce the above copyright * notice, this list of conditions and the following disclaimer in * the documentation and/or other materials provided with the * distribution. * 3. Neither the name PX4 nor the names of its contributors may be * used to endorse or promote products derived from this software * without specific prior written permission. * * THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS * "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT * LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS * FOR A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE * COPYRIGHT OWNER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, * INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, * BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS * OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED * AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT * LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN * ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE * POSSIBILITY OF SUCH DAMAGE. * ****************************************************************************/ /** * @file FlightTaskAutoLineSmoothVel.hpp * * Flight task for autonomous, gps driven mode. The vehicle flies * along a straight line in between waypoints. */ #pragma once #include "FlightTaskAuto.hpp" #include <motion_planning/PositionSmoothing.hpp> #include "Sticks.hpp" #include "StickAccelerationXY.hpp" #include "StickYaw.hpp" class FlightTaskAutoLineSmoothVel : public FlightTaskAuto { public: FlightTaskAutoLineSmoothVel(); virtual ~FlightTaskAutoLineSmoothVel() = default; bool activate(const vehicle_local_position_setpoint_s &last_setpoint) override; void reActivate() override; bool update() override; private: PositionSmoothing _position_smoothing; Vector3f _unsmoothed_velocity_setpoint; protected: /** Reset position or velocity setpoints in case of EKF reset event */ void _ekfResetHandlerPositionXY(const matrix::Vector2f &delta_xy) override; void _ekfResetHandlerVelocityXY(const matrix::Vector2f &delta_vxy) override; void _ekfResetHandlerPositionZ(float delta_z) override; void _ekfResetHandlerVelocityZ(float delta_vz) override; void _ekfResetHandlerHeading(float delta_psi) override; void _generateSetpoints(); /**< Generate setpoints along line. */ void _generateHeading(); void _checkEmergencyBraking(); bool _generateHeadingAlongTraj(); /**< Generates heading along trajectory. */ bool isTargetModified() const; bool _is_emergency_braking_active{false}; void _prepareSetpoints(); /**< Generate velocity target points for the trajectory generator. */ void _updateTrajConstraints(); /** determines when to trigger a takeoff (ignored in flight) */ bool _checkTakeoff() override { return _want_takeoff; }; bool _want_takeoff{false}; void _prepareIdleSetpoints(); void _prepareLandSetpoints(); void _prepareVelocitySetpoints(); void _prepareTakeoffSetpoints(); void _preparePositionSetpoints(); bool _highEnoughForLandingGear(); /**< Checks if gears can be lowered. */ void updateParams() override; /**< See ModuleParam class */ Sticks _sticks; StickAccelerationXY _stick_acceleration_xy; StickYaw _stick_yaw; matrix::Vector3f _land_position; float _land_heading; WaypointType _type_previous{WaypointType::idle}; /**< Previous type of current target triplet. */ DEFINE_PARAMETERS_CUSTOM_PARENT(FlightTaskAuto, (ParamFloat<px4::params::MIS_YAW_ERR>) _param_mis_yaw_err, // yaw-error threshold (ParamFloat<px4::params::MPC_ACC_HOR>) _param_mpc_acc_hor, // acceleration in flight (ParamFloat<px4::params::MPC_ACC_UP_MAX>) _param_mpc_acc_up_max, (ParamFloat<px4::params::MPC_ACC_DOWN_MAX>) _param_mpc_acc_down_max, (ParamFloat<px4::params::MPC_JERK_AUTO>) _param_mpc_jerk_auto, (ParamFloat<px4::params::MPC_XY_TRAJ_P>) _param_mpc_xy_traj_p, (ParamFloat<px4::params::MPC_XY_ERR_MAX>) _param_mpc_xy_err_max, (ParamFloat<px4::params::MPC_LAND_SPEED>) _param_mpc_land_speed, (ParamInt<px4::params::MPC_LAND_RC_HELP>) _param_mpc_land_rc_help, (ParamFloat<px4::params::MPC_LAND_ALT1>) _param_mpc_land_alt1, // altitude at which speed limit downwards reaches maximum speed (ParamFloat<px4::params::MPC_LAND_ALT2>) _param_mpc_land_alt2, // altitude at which speed limit downwards reached minimum speed (ParamFloat<px4::params::MPC_TKO_SPEED>) _param_mpc_tko_speed, (ParamFloat<px4::params::MPC_TKO_RAMP_T>) _param_mpc_tko_ramp_t, // time constant for smooth takeoff ramp (ParamFloat<px4::params::MPC_MAN_Y_MAX>) _param_mpc_man_y_max ); };
41.888
98
0.750955
CQBIT
ef16cf8fd5324c621648102564497d8f3c41a9ed
5,430
hpp
C++
packages/monte_carlo/collision/photon/src/MonteCarlo_LineEnergyAdjointPhotonScatteringDistribution.hpp
bam241/FRENSIE
e1760cd792928699c84f2bdce70ff54228e88094
[ "BSD-3-Clause" ]
10
2019-11-14T19:58:30.000Z
2021-04-04T17:44:09.000Z
packages/monte_carlo/collision/photon/src/MonteCarlo_LineEnergyAdjointPhotonScatteringDistribution.hpp
bam241/FRENSIE
e1760cd792928699c84f2bdce70ff54228e88094
[ "BSD-3-Clause" ]
43
2020-03-03T19:59:20.000Z
2021-09-08T03:36:08.000Z
packages/monte_carlo/collision/photon/src/MonteCarlo_LineEnergyAdjointPhotonScatteringDistribution.hpp
bam241/FRENSIE
e1760cd792928699c84f2bdce70ff54228e88094
[ "BSD-3-Clause" ]
6
2020-02-12T17:37:07.000Z
2020-09-08T18:59:51.000Z
//---------------------------------------------------------------------------// //! //! \file MonteCarlo_LineEnergyAdjointPhotonScatteringDistribution.hpp //! \author Alex Robinson //! \brief The line energy adjoint photon scattering distribution //! //---------------------------------------------------------------------------// #ifndef MONTE_CARLO_LINE_ENERGY_ADJOINT_PHOTON_SCATTERING_DISTRIBUTION_HPP #define MONTE_CARLO_LINE_ENERGY_ADJOINT_PHOTON_SCATTERING_DISTRIBUTION_HPP // Std Lib Includes #include <memory> // FRENSIE Includes #include "MonteCarlo_AdjointPhotonScatteringDistribution.hpp" #include "Utility_TabularUnivariateDistribution.hpp" namespace MonteCarlo{ /*! The line energy adjoint photon scattering distribution class * \details The line energy distribution is only defined at the line energy. */ class LineEnergyAdjointPhotonScatteringDistribution : public AdjointPhotonScatteringDistribution { public: //! The trials counter type typedef AdjointPhotonScatteringDistribution::Counter Counter; //! Constructor LineEnergyAdjointPhotonScatteringDistribution( const double line_energy, const double energy_dist_norm_constant, const std::shared_ptr<const Utility::TabularUnivariateDistribution>& energy_dist ); //! Destructor ~LineEnergyAdjointPhotonScatteringDistribution() { /* ... */ } //! Set the critical line energies void setCriticalLineEnergies( const std::shared_ptr<const std::vector<double> >& critical_line_energies ); //! Get the critical line energies const std::vector<double>& getCriticalLineEnergies() const; //! Get the max energy double getMaxEnergy() const; //! Return the line energy double getLineEnergy() const; //! Return the minimum outgoing energy double getMinOutgoingEnergy() const; //! Return the maximum outgoing energy double getMaxOutgoingEnergy() const; //! Evaluate the distribution (differential in scattering angle cosine) double evaluate( const double incoming_energy, const double scattering_angle_cosine ) const override; //! Evaluate the distribution (double differential) double evaluate( const double incoming_energy, const double outgoing_energy, const double scattering_angle_cosine ) const; //! Evaluate the Marginal PDF (differential in scattering angle cosine) double evaluatePDF( const double incoming_energy, const double scattering_angle_cosine ) const override; //! Evaluate the Marginal PDF (differential in outgoing energy) double evaluateEnergyPDF( const double incoming_energy, const double outgoing_energy ) const; //! Evaluate the Joint PDF double evaluateJointPDF( const double incoming_energy, const double outgoing_energy, const double scattering_angle_cosine ) const; //! Evaluate the integrated cross section (b) double evaluateIntegratedCrossSection( const double incoming_energy, const double precision ) const override; //! Sample an outgoing energy and direction from the distribution void sample( const double incoming_energy, double& outgoing_energy, double& scattering_angle_cosine ) const override; //! Sample an outgoing energy and direction from the distribution void sample( double& outgoing_energy, double& scattering_angle_cosine ) const; //! Sample an outgoing energy and direction and record the number of trials void sampleAndRecordTrials( const double incoming_energy, double& outgoing_energy, double& scattering_angle_cosine, Counter& trials ) const override; //! Sample an outgoing energy and direction and record the number of trials void sampleAndRecordTrials( double& outgoing_energy, double& scattering_angle_cosine, Counter& trials ) const; //! Randomly scatter the photon and return the shell that was interacted with void scatterAdjointPhoton( AdjointPhotonState& adjoint_photon, ParticleBank& bank, Data::SubshellType& shell_of_interaction ) const override; private: // Sample the polar scattering angle cosine double samplePolarScatteringAngleCosine() const; // Create the probe particles void createProbeParticles( const AdjointPhotonState& adjoint_photon, ParticleBank& bank ) const; // The line energy where the scattering distribution is defined double d_line_energy; // The energy distribution norm constant double d_energy_dist_norm_constant; // The energy distribution std::shared_ptr<const Utility::TabularUnivariateDistribution> d_energy_dist; // The critical line energies std::shared_ptr<const std::vector<double> > d_critical_line_energies; }; } // end MonteCarlo namespace #endif // end MONTE_CARLO_ADJOINT_PHOTON_SCATTERING_DISTRIBUTION_HPP //---------------------------------------------------------------------------// // end MonteCarlo_LineEnergyAdjointPhotonScatteringDistribution.hpp //---------------------------------------------------------------------------//
37.972028
96
0.666667
bam241
fa9c08682ab4562d2f3186a7d07ce0213167c122
1,019
cpp
C++
BrickEngine/src/BrickEngine/Renderer/IndexBuffer.cpp
HomelikeBrick42/BrickEngine-4.0
d0697ea42f604c7d9b685ef0baae96f286121431
[ "Apache-2.0" ]
null
null
null
BrickEngine/src/BrickEngine/Renderer/IndexBuffer.cpp
HomelikeBrick42/BrickEngine-4.0
d0697ea42f604c7d9b685ef0baae96f286121431
[ "Apache-2.0" ]
null
null
null
BrickEngine/src/BrickEngine/Renderer/IndexBuffer.cpp
HomelikeBrick42/BrickEngine-4.0
d0697ea42f604c7d9b685ef0baae96f286121431
[ "Apache-2.0" ]
null
null
null
#include "pch.h" #include "IndexBuffer.h" #include "BrickEngine/Renderer/Renderer.h" #include "BrickEngine/Renderer/OpenGL/OpenGLIndexBuffer.h" namespace BrickEngine { Ref<IndexBuffer> IndexBuffer::Create(uint32_t* data, uint32_t count) { switch (Renderer::GetAPI()) { case RendererAPI::Unknown: BRICKENGINE_CORE_ASSERT(false, "Renderer doesn't not support no API!"); return nullptr; case BrickEngine::RendererAPI::OpenGL: return CreateRef<OpenGLIndexBuffer>(data, count); } BRICKENGINE_CORE_ASSERT(false, "Renderer doesn't not support no API!"); return nullptr; } Ref<IndexBuffer> IndexBuffer::Create(uint32_t count) { switch (Renderer::GetAPI()) { case RendererAPI::Unknown: BRICKENGINE_CORE_ASSERT(false, "Renderer doesn't not support no API!"); return nullptr; case BrickEngine::RendererAPI::OpenGL: return CreateRef<OpenGLIndexBuffer>(count); } BRICKENGINE_CORE_ASSERT(false, "Renderer doesn't not support no API!"); return nullptr; } }
25.475
74
0.727184
HomelikeBrick42
fa9c3c1575ac6aa988855322b1cc459dbb2d3e35
3,347
cpp
C++
src/lib/drishti/face/gpu/FaceStabilizer.cpp
ZJCRT/drishti
7c0da7e71cd4cff838b0b8ef195855cb68951839
[ "BSD-3-Clause" ]
346
2017-05-13T05:12:51.000Z
2022-01-31T08:57:14.000Z
src/lib/drishti/face/gpu/FaceStabilizer.cpp
ZJCRT/drishti
7c0da7e71cd4cff838b0b8ef195855cb68951839
[ "BSD-3-Clause" ]
238
2017-05-12T20:22:26.000Z
2021-06-08T20:54:11.000Z
src/lib/drishti/face/gpu/FaceStabilizer.cpp
ZJCRT/drishti
7c0da7e71cd4cff838b0b8ef195855cb68951839
[ "BSD-3-Clause" ]
84
2017-06-30T06:50:56.000Z
2022-03-24T01:21:54.000Z
/*! -*-c++-*- @file face/gpu/FaceStabilizer.cpp @author David Hirvonen @brief Simple interface to stabilize the eyes (similarity transformation). \copyright Copyright 2014-2016 Elucideye, Inc. All rights reserved. \license{This project is released under the 3 Clause BSD License.} */ #include "drishti/face/gpu/FaceStabilizer.h" #include "drishti/geometry/motion.h" // for transformation:: #include "drishti/core/Shape.h" DRISHTI_FACE_NAMESPACE_BEGIN FaceStabilizer::FaceStabilizer(const cv::Size& sizeOut) : m_sizeOut(sizeOut) { } cv::Matx33f FaceStabilizer::stabilize(const drishti::face::FaceModel& face, const cv::Size& sizeOut, float span) { using PointPair = std::array<cv::Point2f, 2>; PointPair eyeCenters{ { face.eyeFullR->irisEllipse.center, face.eyeFullL->irisEllipse.center } }; if (std::min(face.eyeFullR->openness(), face.eyeFullL->openness()) < 0.1f) { eyeCenters = { { core::centroid(face.eyeRight), core::centroid(face.eyeLeft) } }; } // clang-format off const PointPair screenCenters {{ transformation::denormalize(cv::Point2f(0.5-span*0.5, 0.5), sizeOut), transformation::denormalize(cv::Point2f(0.5+span*0.5, 0.5), sizeOut) }}; // clang-format on return transformation::estimateSimilarity(eyeCenters, screenCenters); } std::array<eye::EyeWarp, 2> FaceStabilizer::renderEyes(const drishti::face::FaceModel& face, const cv::Size& sizeIn) const { using PointPair = std::array<cv::Point2f, 2>; std::array<eye::EyeWarp, 2> eyes; if (face.eyeFullR.has && face.eyeFullL.has) { const PointPair eyeCenters{ { face.eyeFullR->irisEllipse.center, face.eyeFullL->irisEllipse.center } }; eyes = renderEyes(eyeCenters, sizeIn); eyes[0].eye = face.eyeFullR; eyes[1].eye = face.eyeFullL; } return eyes; } std::array<eye::EyeWarp, 2> FaceStabilizer::renderEyes(const std::array<cv::Point2f, 2>& eyeCenters, const cv::Size& sizeIn) const { using PointPair = std::array<cv::Point2f, 2>; const cv::Size screenSize(m_sizeOut.width, m_sizeOut.height); // both eyes const cv::Rect eyeRoi(0, 0, screenSize.width / 2, screenSize.height); const std::array<cv::Rect, 2> eyeRois { { eyeRoi, eyeRoi + cv::Point(eyeRoi.width, 0) } }; const PointPair screenCenters{ { transformation::center(eyeRois[0]), transformation::center(eyeRois[1]) } }; const float eyeScaleInScreen = cv::norm(screenCenters[0] - screenCenters[1]); const cv::Matx33f H = transformation::estimateSimilarity(eyeCenters, screenCenters); // SCREEN: map pixels to normalized texture [-1.0 ... +1.0] const cv::Matx33f No = transformation::normalize(screenSize); std::array<eye::EyeWarp, 2> cropInfo; for (int i = 0; i < 2; i++) { float eyeScaleInOutput = cv::norm(eyeCenters[0] - eyeCenters[1]); if(m_autoScaling) { eyeScaleInOutput = static_cast<float>(eyeRoi.width * 2); } // Adjust scaling const float scale = eyeScaleInOutput / eyeScaleInScreen; const cv::Matx33f S = transformation::scale(scale, scale, screenCenters[i]); const cv::Matx33f Heye = No * S * H; cropInfo[i] = { eyeRois[i], Heye }; // return this for use later } return cropInfo; } DRISHTI_FACE_NAMESPACE_END
35.231579
112
0.670451
ZJCRT
fa9dff5b2d896402c6e33d2a7099a75a4d63e545
2,274
hpp
C++
src/include/migraphx/op/if_op.hpp
raramakr/AMDMIGraphX
83e7425367f6ce850ec28fe716fe7c23ce34c79f
[ "MIT" ]
null
null
null
src/include/migraphx/op/if_op.hpp
raramakr/AMDMIGraphX
83e7425367f6ce850ec28fe716fe7c23ce34c79f
[ "MIT" ]
null
null
null
src/include/migraphx/op/if_op.hpp
raramakr/AMDMIGraphX
83e7425367f6ce850ec28fe716fe7c23ce34c79f
[ "MIT" ]
null
null
null
#ifndef MIGRAPHX_GUARD_OPERATORS_IF_OP_HPP #define MIGRAPHX_GUARD_OPERATORS_IF_OP_HPP #include <array> #include <migraphx/check_shapes.hpp> #include <migraphx/argument.hpp> #include <migraphx/functional.hpp> #include <migraphx/config.hpp> #include <migraphx/module.hpp> #include <cmath> #include <utility> #include <set> namespace migraphx { inline namespace MIGRAPHX_INLINE_NS { namespace op { struct if_op { std::string name() const { return "if"; } shape compute_shape(const std::vector<shape>& inputs, std::vector<module_ref> mods) const { check_shapes{inputs, *this}.standard(); if(mods.size() != 2) { MIGRAPHX_THROW("IF: operator should have two submodules."); } auto out_shapes0 = mods[0]->get_output_shapes(); auto out_shapes1 = mods[1]->get_output_shapes(); if(not std::equal( out_shapes1.begin(), out_shapes1.end(), out_shapes0.begin(), out_shapes0.end())) { MIGRAPHX_THROW("IF: output shapes of submodules must be the same."); } return {out_shapes0}; } argument compute(const shape&, const std::vector<argument>& args, const std::vector<module_ref>& mods, const std::function<std::vector<argument>( module_ref&, const std::unordered_map<std::string, argument>&)>& run) const { auto cond = args.front().at<bool>(); module_ref mod = cond ? mods[0] : mods[1]; std::unordered_map<std::string, argument> params; std::set<std::string> pnames; for(const auto& smod : mods) { auto names = smod->get_parameter_names(); pnames.insert(names.begin(), names.end()); } assert(pnames.size() < args.size()); std::transform(pnames.begin(), pnames.end(), args.begin() + 1, std::inserter(params, params.end()), [](auto&& name, auto&& arg) { return std::make_pair(name, arg); }); auto results = run(mod, params); return argument{results}; } }; } // namespace op } // namespace MIGRAPHX_INLINE_NS } // namespace migraphx #endif
30.32
100
0.584872
raramakr
fa9e47e09c98884d7591635221c32e60480fc583
1,475
cc
C++
src/ipm/ipx/src/lu_update.cc
chrhansk/HiGHS
311aa8571925ed23c952687569dbe7207e542e0a
[ "MIT" ]
241
2018-03-27T15:04:14.000Z
2022-03-31T14:44:18.000Z
src/ipm/ipx/src/lu_update.cc
chrhansk/HiGHS
311aa8571925ed23c952687569dbe7207e542e0a
[ "MIT" ]
384
2018-03-28T10:34:36.000Z
2022-03-31T20:19:37.000Z
src/ipm/ipx/src/lu_update.cc
chrhansk/HiGHS
311aa8571925ed23c952687569dbe7207e542e0a
[ "MIT" ]
54
2018-04-28T22:43:19.000Z
2022-03-31T14:44:22.000Z
#include "lu_update.h" namespace ipx { Int LuUpdate::Factorize(const Int* Bbegin, const Int* Bend, const Int* Bi, const double* Bx, bool strict_abs_pivottol) { updates_ = 0; return _Factorize(Bbegin, Bend, Bi, Bx, strict_abs_pivottol); } void LuUpdate::GetFactors(SparseMatrix* L, SparseMatrix* U, Int* rowperm, Int* colperm, std::vector<Int>* dependent_cols) { _GetFactors(L, U, rowperm, colperm, dependent_cols); } void LuUpdate::SolveDense(const Vector& rhs, Vector& lhs, char trans) { _SolveDense(rhs, lhs, trans); } void LuUpdate::FtranForUpdate(Int nz, const Int* bi, const double* bx) { _FtranForUpdate(nz, bi, bx); } void LuUpdate::FtranForUpdate(Int nz, const Int* bi, const double* bx, IndexedVector& lhs) { _FtranForUpdate(nz, bi, bx, lhs); } void LuUpdate::BtranForUpdate(Int p) { _BtranForUpdate(p); } void LuUpdate::BtranForUpdate(Int p, IndexedVector& lhs) { _BtranForUpdate(p, lhs); } Int LuUpdate::Update(double pivot) { updates_++; return _Update(pivot); } bool LuUpdate::NeedFreshFactorization() { return _NeedFreshFactorization(); } double LuUpdate::fill_factor() const { return _fill_factor(); } double LuUpdate::pivottol() const { return _pivottol(); } void LuUpdate::pivottol(double new_pivottol) { _pivottol(new_pivottol); } Int LuUpdate::updates() const { return updates_; } } // namespace ipx
23.412698
75
0.667797
chrhansk
faa4d9ce9a6ab626fd62be440772ff2c89d4b793
548
cpp
C++
Appserver/src/servicios/RespuestaActualizarPosicion.cpp
seguijoaquin/taller2
f41232516de15fe045805131b09299e5c2634e5e
[ "MIT" ]
2
2016-06-06T03:26:49.000Z
2017-08-06T18:12:33.000Z
Appserver/src/servicios/RespuestaActualizarPosicion.cpp
seguijoaquin/taller2
f41232516de15fe045805131b09299e5c2634e5e
[ "MIT" ]
60
2016-03-19T16:01:27.000Z
2016-06-23T16:26:10.000Z
Appserver/src/servicios/RespuestaActualizarPosicion.cpp
seguijoaquin/taller2
f41232516de15fe045805131b09299e5c2634e5e
[ "MIT" ]
null
null
null
#include "RespuestaActualizarPosicion.h" RespuestaActualizarPosicion::RespuestaActualizarPosicion() { //ctor } RespuestaActualizarPosicion::~RespuestaActualizarPosicion() { //dtor } void RespuestaActualizarPosicion::setRespuestaActualizacionCorrecta(){ this->respuesta.setCodigo(200); this->respuesta.setMensajeDeEstado("Actualizacion correcta"); } void RespuestaActualizarPosicion::setRespuestaActualizacionIncorrecta(){ this->respuesta.setCodigo(500); this->respuesta.setMensajeDeEstado("Actualizacion incorrecta"); }
24.909091
72
0.797445
seguijoaquin
faa5d9282dc24eadd8aae59ebd3c2e9246bd15c0
4,151
cpp
C++
data_structures/hash_table/separate_chaining/separate_chaining_hash.cpp
kruztev/FMI-DSA
f509dba6cd95792ec9c4c9ad55620a3dc06c6602
[ "MIT" ]
24
2017-12-21T13:57:34.000Z
2021-12-08T01:12:32.000Z
data_structures/hash_table/separate_chaining/separate_chaining_hash.cpp
kruztev/FMI-DSA
f509dba6cd95792ec9c4c9ad55620a3dc06c6602
[ "MIT" ]
28
2018-11-01T23:34:08.000Z
2019-10-07T17:42:54.000Z
data_structures/hash_table/separate_chaining/separate_chaining_hash.cpp
kruztev/FMI-DSA
f509dba6cd95792ec9c4c9ad55620a3dc06c6602
[ "MIT" ]
4
2018-04-24T19:28:51.000Z
2020-07-19T14:06:23.000Z
/******************************************************************************* * This file is part of the "Data structures and algorithms" course. FMI 2018/19 *******************************************************************************/ /** * @file separate_chaining_hash.cpp * @author Ivan Filipov * @date 01.2019 * @brief Basic implementation of hash table, using * opened hashing (closed address) strategy - * separate chaining. * Depends only on our custom dynamic array and doubly linked list. * @see https://en.wikipedia.org/wiki/Hash_table */ #include "separate_chaining_hash.h" // include only if debugging is ON #if DEBUG_HASH == 1 #include <iostream> //std::cin, std::cout #endif // DEBUG_HASH // the hash function, it is the most critical zone, // the implementation below is pretty simple, consider // using better hash functions in your applications size_t sp_ch_hash_table::hash_func(const key_type& key, const size_t size) { // get the size of the string size_t result = key.size(); // add the ASCII code for each character for (unsigned char c : key) result += c; // return result % size; // but better in case the SIZE is a power of 2 return result & (size - 1); } void sp_ch_hash_table::rehash() { // debug print #if DEBUG_HASH == 1 std::cout << "\n...rehashing ...\n"; #endif // DEBUG_HASH // create new table sp_ch_hash_table new_table(table.size() * 2); // for each chain ... for (dsa::dlinked_list<table_elem>& list: table) if (!list.empty()) for(table_elem& el: list) // for each of its elements new_table.insert(el.key, el.data); // put it in the new table // which will lead to re-calculating the hash values new_table.table.swap_with(table); #if DEBUG_HASH == 1 std::cout << ".............\n"; #endif // DEBUG_HASH } sp_ch_hash_table::chain_iter sp_ch_hash_table::find(size_t index, const key_type& key) { chain_iter it = table[index].begin(); while (it != table[index].end() && it->key != key) ++it; return it; } void sp_ch_hash_table::insert(const key_type& key, const data_type& data) { // calculate where to add the new element using the hash function size_t index = hash_func(key, table.size()); // check if this key is taken chain_iter it = find(index, key); if (it != table[index].end()) throw std::logic_error("this key is already taken!\n"); // check if resizing is needed if (table[index].size() >= MAX_CHAIN_SIZE) { rehash(); // calculate the hash again, because the table now have different size index = hash_func(key, table.size()); } // add the new elem as a first in the list for O(1) table[index].push_front({ key, data }); #if DEBUG_HASH == 1 std::cout << "stored at hash " << index << std::endl; #endif } data_type sp_ch_hash_table::get(const key_type& key) { // calculate where to add the new element using the hash function size_t index = hash_func(key, table.size()); // iterate through the elements of the list // searching for exactly the same key chain_iter it = find(index, key); // there is not such element if (it == table[index].end()) throw std::logic_error("there isn't element with such key\n"); return it->data; } void sp_ch_hash_table::erase(const key_type& key) { // calculate where to add the new element using the hash function size_t index = hash_func(key, table.size()); // find it and get a iterator to it chain_iter it = find(index, key); // can't find it if (it == table[index].end()) throw std::logic_error("there isn't element with such key\n"); // remove it for O(1) table[index].remove(it); } void sp_ch_hash_table::print() { #if DEBUG_HASH == 1 for (size_t i = 0; i < table.size(); i++) { std::cout << "hash = " << i << " :"; if (table[i].empty()) { std::cout << "{}" << std::endl; continue; } std::cout << "{ "; size_t j = 0; for (chain_iter it = table[i].begin(); it != table[i].end(); ++it) { std::cout << "{ key: " << it->key << ", " << " data: " << it->data << " }"; if (j != table[i].size() -1) std::cout << ", "; j++; } std::cout << " }" << std::endl; } #endif // DEBUG_HASH }
31.210526
88
0.626596
kruztev
faa9b5e2ca6265b83fed3b5e28a84cbeab16945d
1,482
cpp
C++
android-31/android/service/quickaccesswallet/GetWalletCardsError.cpp
YJBeetle/QtAndroidAPI
1468b5dc6eafaf7709f0b00ba1a6ec2b70684266
[ "Apache-2.0" ]
12
2020-03-26T02:38:56.000Z
2022-03-14T08:17:26.000Z
android-31/android/service/quickaccesswallet/GetWalletCardsError.cpp
YJBeetle/QtAndroidAPI
1468b5dc6eafaf7709f0b00ba1a6ec2b70684266
[ "Apache-2.0" ]
1
2021-01-27T06:07:45.000Z
2021-11-13T19:19:43.000Z
android-31/android/service/quickaccesswallet/GetWalletCardsError.cpp
YJBeetle/QtAndroidAPI
1468b5dc6eafaf7709f0b00ba1a6ec2b70684266
[ "Apache-2.0" ]
3
2021-02-02T12:34:55.000Z
2022-03-08T07:45:57.000Z
#include "../../graphics/drawable/Icon.hpp" #include "../../os/Parcel.hpp" #include "../../../JString.hpp" #include "./GetWalletCardsError.hpp" namespace android::service::quickaccesswallet { // Fields JObject GetWalletCardsError::CREATOR() { return getStaticObjectField( "android.service.quickaccesswallet.GetWalletCardsError", "CREATOR", "Landroid/os/Parcelable$Creator;" ); } // QJniObject forward GetWalletCardsError::GetWalletCardsError(QJniObject obj) : JObject(obj) {} // Constructors GetWalletCardsError::GetWalletCardsError(android::graphics::drawable::Icon arg0, JString arg1) : JObject( "android.service.quickaccesswallet.GetWalletCardsError", "(Landroid/graphics/drawable/Icon;Ljava/lang/CharSequence;)V", arg0.object(), arg1.object<jstring>() ) {} // Methods jint GetWalletCardsError::describeContents() const { return callMethod<jint>( "describeContents", "()I" ); } android::graphics::drawable::Icon GetWalletCardsError::getIcon() const { return callObjectMethod( "getIcon", "()Landroid/graphics/drawable/Icon;" ); } JString GetWalletCardsError::getMessage() const { return callObjectMethod( "getMessage", "()Ljava/lang/CharSequence;" ); } void GetWalletCardsError::writeToParcel(android::os::Parcel arg0, jint arg1) const { callMethod<void>( "writeToParcel", "(Landroid/os/Parcel;I)V", arg0.object(), arg1 ); } } // namespace android::service::quickaccesswallet
23.52381
95
0.709177
YJBeetle
faaa9caa847f6b6550e85973e7bd6200b3e87ccc
314
cpp
C++
UVA10812.cpp
MaSteve/UVA-problems
3a240fcca02e24a9c850b7e86062f8581df6f95f
[ "MIT" ]
17
2015-12-08T18:50:03.000Z
2022-03-16T01:23:20.000Z
UVA10812.cpp
MaSteve/UVA-problems
3a240fcca02e24a9c850b7e86062f8581df6f95f
[ "MIT" ]
null
null
null
UVA10812.cpp
MaSteve/UVA-problems
3a240fcca02e24a9c850b7e86062f8581df6f95f
[ "MIT" ]
6
2017-04-04T18:16:23.000Z
2020-06-28T11:07:22.000Z
#include <cstdio> using namespace std; int main() { int cases; scanf("%d", &cases); for (int i = 0; i < cases; i++) { long long s, d, r1, r2; scanf("%lld %lld", &s, &d); r1 = (s+d)/2; r2 = s-r1; if (r2 >=0 && r1 - r2 == d) printf("%lld %lld\n", r1, r2); else printf("impossible\n"); } return 0; }
19.625
60
0.519108
MaSteve
faac660f7683212f00cc87e2dbbc0471617883b0
5,107
cpp
C++
Filter/sort_fastq_mem_eff.cpp
jwnam/etching
7f6750de03bbd44e86451ee9ab4edaa9ed77d3a3
[ "MIT" ]
6
2020-08-27T00:14:44.000Z
2022-01-20T11:11:12.000Z
Filter/sort_fastq_mem_eff.cpp
jwnam/etching
7f6750de03bbd44e86451ee9ab4edaa9ed77d3a3
[ "MIT" ]
1
2021-02-02T07:02:33.000Z
2021-02-03T08:30:24.000Z
Filter/sort_fastq_mem_eff.cpp
jwnam/etching
7f6750de03bbd44e86451ee9ab4edaa9ed77d3a3
[ "MIT" ]
1
2020-08-27T00:14:32.000Z
2020-08-27T00:14:32.000Z
#include <string> #include <vector> #include <map> #include <fstream> #include <iostream> #include <functional> uint32_t adler32(std::string & input) { //uint32_t MOD_ADLER = 65521; uint32_t a = 1; uint32_t b = 0; std::size_t Size = input.size(); for (std::size_t i = 0; i < Size ; i++ ){ a = (a + input[i]) % 65521; b = (b + a) % 65521; } return (b << 16) | a; } int64_t file_size(std::string infile){ std::ifstream fin; fin.open(infile.c_str(), std::ios_base::binary); fin.seekg(0,std::ios_base::end); int64_t size = fin.tellg(); fin.close(); return size; } void sort_and_write_fastq ( std::string infile , std::string outfile ){ std::ifstream fin ( infile.c_str() ); std::ofstream fout ( outfile.c_str() ); std::string id; std::string seq; std::string desc; std::string qual; std::map < std::string , std::pair < std::string , std::string > > fastq_map; while ( std::getline ( fin , id ) && std::getline ( fin , seq ) && std::getline ( fin , desc ) && std::getline ( fin , qual ) ){ if ( id.substr(id.size()-2) == "/1" || id.substr(id.size()-2) == "/2"){ id = id.substr(0,id.size()-2); } fastq_map[id].first = seq; fastq_map[id].second = qual; } for ( auto & i : fastq_map ){ id = i.first; seq = i.second.first; qual = i.second.second; fout << id << "\n" << seq << "\n+\n" << qual << "\n"; } fin.close(); fout.close(); } void split_file ( std::string infile , std::vector < std::string > fname_vec, int64_t fsize ){ // std::hash<std::string> hashing; std::ifstream fin; std::string id; std::string seq; std::string desc; std::string qual; // open file streams fin.open(infile.c_str()); //std::vector < std::ofstream > fout; std::ofstream * fout = new std::ofstream [fsize]; //fout.resize(fsize); for ( uint i = 0 ; i < fsize ; i ++ ){ fout[i].open(fname_vec[i].c_str()); } while ( std::getline ( fin , id ) && std::getline ( fin , seq ) && std::getline ( fin , desc ) && std::getline ( fin , qual ) ){ if ( id.substr(id.size()-2) == "/1" || id.substr(id.size()-2) == "/2"){ id = id.substr(0,id.size()-2); } // std::size_t hval = hashing ( id ); std::size_t hval = adler32 ( id ); std::size_t fnumber = hval % fsize; fout[fnumber] << id << "\n" << seq << "\n+\n" << qual << "\n"; } // close file streams fin.close(); for ( uint i = 0 ; i < fsize ; i ++ ){ fout[i].close(); } delete [] fout; } //////////////////////////////////////////////////////////////////////////////////////////////////////////////////////// // // Main // int main ( int argc , char ** argv ){ if ( argc == 1 ){ std::cout << "sort_fastq input.fastq output.fastq chunk_file_size(GB)\n"; return 0; } std::string infile(argv[1]); std::string outfile(argv[2]); int64_t FSIZE = atoi(argv[3]); int64_t GB = 1024*1024*1024 ; int64_t fsize = file_size(infile) / ( FSIZE * GB ) + 1; //////////////////////////////////////////////////////////////////////////////////////////////////////////////// // // If file size is < 1 GB, just sort using binary tree (std::map). // //std::cout << "File size: " << file_size(infile) << " Byte\n"; if ( fsize == 1 ){ sort_and_write_fastq(infile, outfile); } //////////////////////////////////////////////////////////////////////////////////////////////////////////////// // // If file size is greater 1 GB, split files // // < 2 GB --> 2 files // < 3 GB --> 3 files // . // < n GB --> n files else{ // std::cout << "Split sort\n"; std::vector < std::string > fname_vec; std::vector < std::string > sname_vec; // initializing variables for ( uint i = 0 ; i < fsize ; i ++ ){ std::string fname = outfile + "_" + std::to_string(i); std::string sname = fname + "_sort"; sname_vec.push_back(sname); fname_vec.push_back(fname); } // split file split_file ( infile, fname_vec, fsize ); // sort by id for ( uint i = 0 ; i < fsize ; i ++ ){ std::string fname = fname_vec[i]; std::string sname = sname_vec[i]; sort_and_write_fastq(fname, sname); } // remove split files for ( uint i = 0 ; i < fsize ; i ++ ){ remove(fname_vec[i].c_str()); } // merge and print std::ofstream fout ( outfile.c_str() ); for ( uint i = 0 ; i < fsize ; i ++ ){ std::string sname = sname_vec[i]; std::string id; std::string seq; std::string desc; std::string qual; std::ifstream fin ( sname.c_str() ); while ( std::getline ( fin , id ) && std::getline ( fin , seq ) && std::getline ( fin , desc ) && std::getline ( fin , qual ) ){ if ( id.substr(id.size()-2) == "/1" || id.substr(id.size()-2) == "/2"){ id = id.substr(0,id.size()-2); } fout << id << "\n" << seq << "\n+\n" << qual << "\n"; } fin.close(); } // remove sorted split files for ( uint i = 0 ; i < fsize ; i ++ ){ remove(sname_vec[i].c_str()); } fout.close(); } return 0; }
24.791262
120
0.504797
jwnam
faad3d21b83bbc83e8f185e237835df1929c0f3a
1,083
cpp
C++
source/renderer/Effects/EffectFactoryList.cpp
skelleher/HappyGame
2c7610f420dab4ccf7e636c1c0d8fb6819989853
[ "BSD-3-Clause" ]
4
2015-06-23T19:23:31.000Z
2017-01-05T07:08:08.000Z
source/renderer/Effects/EffectFactoryList.cpp
skelleher/HappyGame
2c7610f420dab4ccf7e636c1c0d8fb6819989853
[ "BSD-3-Clause" ]
null
null
null
source/renderer/Effects/EffectFactoryList.cpp
skelleher/HappyGame
2c7610f420dab4ccf7e636c1c0d8fb6819989853
[ "BSD-3-Clause" ]
null
null
null
#include "EffectManager.hpp" #include "OpenGLESEffect.hpp" #include "BlurEffect.hpp" #include "RippleEffect.hpp" #include "MorphEffect.hpp" #include "ColorEffect.hpp" #include "GradientEffect.hpp" #include "DropShadowEffect.hpp" namespace Z { EffectManager::EffectFactoryItem EffectManager::s_EffectFactories[] = { { "DefaultEffect", (EFFECT_FACTORY_METHOD)EffectFactory< OpenGLESEffect >::Create }, { "BlurEffect", (EFFECT_FACTORY_METHOD)EffectFactory< BlurEffect >::Create }, { "RippleEffect", (EFFECT_FACTORY_METHOD)EffectFactory< RippleEffect >::Create }, { "MorphEffect", (EFFECT_FACTORY_METHOD)EffectFactory< MorphEffect >::Create }, { "ColorEffect", (EFFECT_FACTORY_METHOD)EffectFactory< ColorEffect >::Create }, { "GradientEffect", (EFFECT_FACTORY_METHOD)EffectFactory< GradientEffect >::Create }, { "DropShadowEffect", (EFFECT_FACTORY_METHOD)EffectFactory< DropShadowEffect >::Create }, { "", NULL } }; } // END namespace Z
37.344828
99
0.66759
skelleher
faad80a483b98bbb86df5b4a0f58dbfdedf34472
7,893
cpp
C++
AdvancedSessions/Source/AdvancedSessions/Private/AdvancedIdentityLibrary.cpp
Ji-Rath/AdvancedSessionsPlugin
94fb993ad70a7a497b827180a66a66d18e769db6
[ "MIT" ]
211
2020-06-08T19:38:26.000Z
2022-03-25T13:51:05.000Z
AdvancedSessions/Source/AdvancedSessions/Private/AdvancedIdentityLibrary.cpp
Ji-Rath/AdvancedSessionsPlugin
94fb993ad70a7a497b827180a66a66d18e769db6
[ "MIT" ]
24
2020-06-30T00:05:31.000Z
2022-03-26T08:28:05.000Z
AdvancedSessions/Source/AdvancedSessions/Private/AdvancedIdentityLibrary.cpp
Ji-Rath/AdvancedSessionsPlugin
94fb993ad70a7a497b827180a66a66d18e769db6
[ "MIT" ]
56
2020-06-08T06:56:12.000Z
2022-03-25T13:51:10.000Z
// Fill out your copyright notice in the Description page of Project Settings. #include "AdvancedIdentityLibrary.h" //General Log DEFINE_LOG_CATEGORY(AdvancedIdentityLog); void UAdvancedIdentityLibrary::GetPlayerAuthToken(APlayerController * PlayerController, FString & AuthToken, EBlueprintResultSwitch &Result) { if (!PlayerController) { UE_LOG(AdvancedIdentityLog, Warning, TEXT("GetPlayerAuthToken was passed a bad player controller!")); Result = EBlueprintResultSwitch::OnFailure; return; } ULocalPlayer* Player = Cast<ULocalPlayer>(PlayerController->Player); if (!Player) { UE_LOG(AdvancedIdentityLog, Warning, TEXT("GetPlayerAuthToken failed to get LocalPlayer!")); Result = EBlueprintResultSwitch::OnFailure; return; } IOnlineIdentityPtr IdentityInterface = Online::GetIdentityInterface(); if (!IdentityInterface.IsValid()) { UE_LOG(AdvancedIdentityLog, Warning, TEXT("GetPlayerAuthToken Failed to get identity interface!")); Result = EBlueprintResultSwitch::OnFailure; return; } AuthToken = IdentityInterface->GetAuthToken(Player->GetControllerId()); Result = EBlueprintResultSwitch::OnSuccess; } void UAdvancedIdentityLibrary::GetPlayerNickname(const FBPUniqueNetId & UniqueNetID, FString & PlayerNickname) { if (!UniqueNetID.IsValid()) { UE_LOG(AdvancedIdentityLog, Warning, TEXT("GetPlayerNickname was passed a bad player uniquenetid!")); return; } IOnlineIdentityPtr IdentityInterface = Online::GetIdentityInterface(); if (!IdentityInterface.IsValid()) { UE_LOG(AdvancedIdentityLog, Warning, TEXT("GetPlayerNickname Failed to get identity interface!")); return; } PlayerNickname = IdentityInterface->GetPlayerNickname(*UniqueNetID.GetUniqueNetId()); } void UAdvancedIdentityLibrary::GetLoginStatus(const FBPUniqueNetId & UniqueNetID, EBPLoginStatus & LoginStatus, EBlueprintResultSwitch &Result) { if (!UniqueNetID.IsValid()) { UE_LOG(AdvancedIdentityLog, Warning, TEXT("GetLoginStatus was passed a bad player uniquenetid!")); Result = EBlueprintResultSwitch::OnFailure; return; } IOnlineIdentityPtr IdentityInterface = Online::GetIdentityInterface(); if (!IdentityInterface.IsValid()) { UE_LOG(AdvancedIdentityLog, Warning, TEXT("GetLoginStatus Failed to get identity interface!")); Result = EBlueprintResultSwitch::OnFailure; return; } LoginStatus = (EBPLoginStatus)IdentityInterface->GetLoginStatus(*UniqueNetID.GetUniqueNetId()); Result = EBlueprintResultSwitch::OnSuccess; } void UAdvancedIdentityLibrary::GetAllUserAccounts(TArray<FBPUserOnlineAccount> & AccountInfos, EBlueprintResultSwitch &Result) { IOnlineIdentityPtr IdentityInterface = Online::GetIdentityInterface(); if (!IdentityInterface.IsValid()) { UE_LOG(AdvancedIdentityLog, Warning, TEXT("GetAllUserAccounts Failed to get identity interface!")); Result = EBlueprintResultSwitch::OnFailure; return; } TArray<TSharedPtr<FUserOnlineAccount>> accountInfos = IdentityInterface->GetAllUserAccounts(); for (int i = 0; i < accountInfos.Num(); ++i) { AccountInfos.Add(FBPUserOnlineAccount(accountInfos[i])); } Result = EBlueprintResultSwitch::OnSuccess; } void UAdvancedIdentityLibrary::GetUserAccount(const FBPUniqueNetId & UniqueNetId, FBPUserOnlineAccount & AccountInfo, EBlueprintResultSwitch &Result) { IOnlineIdentityPtr IdentityInterface = Online::GetIdentityInterface(); if(!UniqueNetId.IsValid()) { UE_LOG(AdvancedIdentityLog, Warning, TEXT("GetUserAccount was passed a bad unique net id!")); Result = EBlueprintResultSwitch::OnFailure; return; } if (!IdentityInterface.IsValid()) { UE_LOG(AdvancedIdentityLog, Warning, TEXT("GetUserAccount Failed to get identity interface!")); Result = EBlueprintResultSwitch::OnFailure; return; } TSharedPtr<FUserOnlineAccount> accountInfo = IdentityInterface->GetUserAccount(*UniqueNetId.GetUniqueNetId()); if (!accountInfo.IsValid()) { UE_LOG(AdvancedIdentityLog, Warning, TEXT("GetUserAccount Failed to get the account!")); Result = EBlueprintResultSwitch::OnFailure; return; } AccountInfo.UserAccountInfo = accountInfo; Result = EBlueprintResultSwitch::OnSuccess; } void UAdvancedIdentityLibrary::GetUserAccountAccessToken(const FBPUserOnlineAccount & AccountInfo, FString & AccessToken) { if (!AccountInfo.UserAccountInfo.IsValid()) { UE_LOG(AdvancedIdentityLog, Warning, TEXT("GetUserAccountAccessToken was passed an invalid account!")); return; } AccessToken = AccountInfo.UserAccountInfo->GetAccessToken(); } void UAdvancedIdentityLibrary::GetUserAccountAuthAttribute(const FBPUserOnlineAccount & AccountInfo, const FString & AttributeName, FString & AuthAttribute, EBlueprintResultSwitch &Result) { if (!AccountInfo.UserAccountInfo.IsValid()) { UE_LOG(AdvancedIdentityLog, Warning, TEXT("GetUserAccountAuthAttribute was passed an invalid account!")); Result = EBlueprintResultSwitch::OnFailure; return; } if (!AccountInfo.UserAccountInfo->GetAuthAttribute(AttributeName, AuthAttribute)) { UE_LOG(AdvancedIdentityLog, Warning, TEXT("GetUserAccountAuthAttribute couldn't find the attribute!")); Result = EBlueprintResultSwitch::OnFailure; return; } Result = EBlueprintResultSwitch::OnSuccess; } void UAdvancedIdentityLibrary::SetUserAccountAttribute(const FBPUserOnlineAccount & AccountInfo, const FString & AttributeName, const FString & NewAttributeValue, EBlueprintResultSwitch &Result) { if (!AccountInfo.UserAccountInfo.IsValid()) { UE_LOG(AdvancedIdentityLog, Warning, TEXT("SetUserAccountAuthAttribute was passed an invalid account!")); Result = EBlueprintResultSwitch::OnFailure; return; } if (!AccountInfo.UserAccountInfo->SetUserAttribute(AttributeName, NewAttributeValue)) { UE_LOG(AdvancedIdentityLog, Warning, TEXT("SetUserAccountAuthAttribute was unable to set the attribute!")); Result = EBlueprintResultSwitch::OnFailure; return; } Result = EBlueprintResultSwitch::OnSuccess; } void UAdvancedIdentityLibrary::GetUserID(const FBPUserOnlineAccount & AccountInfo, FBPUniqueNetId & UniqueNetID) { if (!AccountInfo.UserAccountInfo.IsValid()) { UE_LOG(AdvancedIdentityLog, Warning, TEXT("GetUserID was passed an invalid account!")); return; } UniqueNetID.SetUniqueNetId(AccountInfo.UserAccountInfo->GetUserId()); } void UAdvancedIdentityLibrary::GetUserAccountRealName(const FBPUserOnlineAccount & AccountInfo, FString & UserName) { if (!AccountInfo.UserAccountInfo.IsValid()) { UE_LOG(AdvancedIdentityLog, Warning, TEXT("GetUserAccountRealName was passed an invalid account!")); return; } UserName = AccountInfo.UserAccountInfo->GetRealName(); } void UAdvancedIdentityLibrary::GetUserAccountDisplayName(const FBPUserOnlineAccount & AccountInfo, FString & DisplayName) { if (!AccountInfo.UserAccountInfo.IsValid()) { UE_LOG(AdvancedIdentityLog, Warning, TEXT("GetUserAccountDisplayName was passed an invalid account!")); return; } DisplayName = AccountInfo.UserAccountInfo->GetDisplayName(); } void UAdvancedIdentityLibrary::GetUserAccountAttribute(const FBPUserOnlineAccount & AccountInfo, const FString & AttributeName, FString & AttributeValue, EBlueprintResultSwitch &Result) { if (!AccountInfo.UserAccountInfo.IsValid()) { UE_LOG(AdvancedIdentityLog, Warning, TEXT("GetUserAccountAttribute was passed an invalid account!")); Result = EBlueprintResultSwitch::OnFailure; return; } if (!AccountInfo.UserAccountInfo->GetUserAttribute(AttributeName, AttributeValue)) { UE_LOG(AdvancedIdentityLog, Warning, TEXT("GetUserAccountAttribute failed to get user attribute!")); Result = EBlueprintResultSwitch::OnFailure; return; } Result = EBlueprintResultSwitch::OnSuccess; }
33.587234
195
0.766502
Ji-Rath
faaf0579add76f1ace7e96e0b4cd192a432f5fb5
89
cpp
C++
GameEngineContents/Chapter7Map.cpp
AnWooJin/Portfolio
612c1b9d29f552d1bba586f461babf7dff3a1e4e
[ "MIT" ]
null
null
null
GameEngineContents/Chapter7Map.cpp
AnWooJin/Portfolio
612c1b9d29f552d1bba586f461babf7dff3a1e4e
[ "MIT" ]
null
null
null
GameEngineContents/Chapter7Map.cpp
AnWooJin/Portfolio
612c1b9d29f552d1bba586f461babf7dff3a1e4e
[ "MIT" ]
null
null
null
#include "Chapter7Map.h" Chapter7Map::Chapter7Map() { } Chapter7Map::~Chapter7Map() { }
9.888889
27
0.707865
AnWooJin
faaf227493eed0fea7e5ac75d4fa467e487c95b5
1,484
cpp
C++
Segment Tree/Sum (mem optim (Euler tour)).cpp
yokeshrana/Fast_Algorithms_in_Data_Structures
2346fee16c6c3ffceac7cb79b1f449b4d8dc9df2
[ "MIT" ]
4
2021-01-15T16:30:48.000Z
2021-08-12T03:17:00.000Z
Segment Tree/Sum (mem optim (Euler tour)).cpp
andy489/Fast_Algorithms_in_Data_Structures
0f28a75030df3367902f0aa859a34096ea2b2582
[ "MIT" ]
null
null
null
Segment Tree/Sum (mem optim (Euler tour)).cpp
andy489/Fast_Algorithms_in_Data_Structures
0f28a75030df3367902f0aa859a34096ea2b2582
[ "MIT" ]
2
2021-02-24T14:50:08.000Z
2021-02-28T17:39:41.000Z
// github.com/andy489 #include <stdio.h> #include <algorithm> int a[] = {1, 2, 3, 4, 5, 6, 7, 8, 9, 10}; const int n = sizeof a / sizeof(int); int t[2 * n]; using namespace std; void build(int v, int tl, int tr) { if (tl == tr) t[v] = a[tl]; else { int tm = tl + tr >> 1; build(v + 1, tl, tm); build(v + 2 * (tm - tl + 1) - 1 + 1, tm + 1, tr); t[v] = t[v + 1] + t[v + 2 * (tm - tl + 1)]; } } int sum(int v, int tl, int tr, int l, int r) { if (l > r) return 0; if (l == tl && r == tr) return t[v]; int tm = tl + tr >> 1; return sum(v + 1, tl, tm, l, min(r, tm)) + sum(v + 2 * (tm - tl + 1), tm + 1, tr, max(l, tm + 1), r); } void update(int v, int tl, int tr, int pos, int newVal) { if (tl == tr) t[v] = newVal; else { int tm = tl + tr >> 1; if (pos <= tm) update(v + 1, tl, tm, pos, newVal); else update(v + 2 * (tm - tl + 1), tm + 1, tr, pos, newVal); t[v] = t[v + 1] + t[v + 2 * (tm - tl + 1)]; } } int main() { build(1, 0, n - 1); int q, cmd, l, r; scanf("%d", &q); while (q--) { scanf("%d", &cmd); if (cmd == 1) { scanf("%d%d", &l, &r); --l, --r; printf("%d\n", sum(1, 0, n - 1, l, r)); } else { scanf("%d%d", &l, &r); // l = pos, r = x update(1, 0, n - 1, l - 1, r); } } return 0; }
23.1875
69
0.382749
yokeshrana
faafc1e0afc51c6790ae3650dff35d7d0d8f3aa5
1,805
cpp
C++
PyQt6-6.0.0/qpy/QtWidgets/qpywidgets_chimera_helpers.cpp
sonerkcardak/python-detailed-assistant
161b82289c5ae7149fe638ba6a5192b6aa6833d8
[ "Apache-2.0" ]
null
null
null
PyQt6-6.0.0/qpy/QtWidgets/qpywidgets_chimera_helpers.cpp
sonerkcardak/python-detailed-assistant
161b82289c5ae7149fe638ba6a5192b6aa6833d8
[ "Apache-2.0" ]
null
null
null
PyQt6-6.0.0/qpy/QtWidgets/qpywidgets_chimera_helpers.cpp
sonerkcardak/python-detailed-assistant
161b82289c5ae7149fe638ba6a5192b6aa6833d8
[ "Apache-2.0" ]
null
null
null
// This is the implementation of the various Chimera helpers. // // Copyright (c) 2021 Riverbank Computing Limited <info@riverbankcomputing.com> // // This file is part of PyQt6. // // This file may be used under the terms of the GNU General Public License // version 3.0 as published by the Free Software Foundation and appearing in // the file LICENSE included in the packaging of this file. Please review the // following information to ensure the GNU General Public License version 3.0 // requirements will be met: http://www.gnu.org/copyleft/gpl.html. // // If you do not wish to use this file under the terms of the GPL version 3.0 // then you may purchase a commercial license. For more information contact // info@riverbankcomputing.com. // // This file is provided AS IS with NO WARRANTY OF ANY KIND, INCLUDING THE // WARRANTY OF DESIGN, MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE. #include <Python.h> #include <QGraphicsItem> #include "qpywidgets_chimera_helpers.h" #include "sipAPIQtWidgets.h" // Convert a Python object to a QVariant. bool qpywidgets_to_qvariant_convertor(PyObject *obj, QVariant &var, bool *okp) { // QGraphicsItem sub-classes aren't known to the meta-object system and, // if we didn't do anything, would be interpreted as QObjects by the // default convertion code. This would cause problems for Python // reimplementations of QGraphicsItem::itemChange(). if (!sipCanConvertToType(obj, sipType_QGraphicsItem, SIP_NO_CONVERTORS)) return false; int iserr = 0; QGraphicsItem *qgi = reinterpret_cast<QGraphicsItem *>( sipConvertToType(obj, sipType_QGraphicsItem, 0, SIP_NO_CONVERTORS, 0, &iserr)); *okp = !iserr; if (!iserr) var.setValue(qgi); return true; }
33.425926
79
0.724654
sonerkcardak
fab15ac345de4294ff1ce1546e755c5446dc4a24
1,283
hpp
C++
include/RAJA/policy/loop/WorkGroup/Vtable.hpp
ggeorgakoudis/RAJA
05f4a5e473a4160ddfdb5e829b4fdc9e0384ae26
[ "BSD-3-Clause" ]
1
2020-11-19T04:55:20.000Z
2020-11-19T04:55:20.000Z
include/RAJA/policy/loop/WorkGroup/Vtable.hpp
ggeorgakoudis/RAJA
05f4a5e473a4160ddfdb5e829b4fdc9e0384ae26
[ "BSD-3-Clause" ]
null
null
null
include/RAJA/policy/loop/WorkGroup/Vtable.hpp
ggeorgakoudis/RAJA
05f4a5e473a4160ddfdb5e829b4fdc9e0384ae26
[ "BSD-3-Clause" ]
null
null
null
/*! ****************************************************************************** * * \file * * \brief Header file containing RAJA workgroup Vtable. * ****************************************************************************** */ //~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~// // Copyright (c) 2016-20, Lawrence Livermore National Security, LLC // and RAJA project contributors. See the RAJA/COPYRIGHT file for details. // // SPDX-License-Identifier: (BSD-3-Clause) //~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~// #ifndef RAJA_loop_WorkGroup_Vtable_HPP #define RAJA_loop_WorkGroup_Vtable_HPP #include "RAJA/config.hpp" #include "RAJA/policy/loop/policy.hpp" #include "RAJA/pattern/WorkGroup/Vtable.hpp" namespace RAJA { namespace detail { /*! * Populate and return a Vtable object */ template < typename T, typename Vtable_T > inline const Vtable_T* get_Vtable(loop_work const&) { static Vtable_T vtable{ &Vtable_T::template move_construct_destroy<T>, &Vtable_T::template host_call<T>, &Vtable_T::template destroy<T>, sizeof(T) }; return &vtable; } } // namespace detail } // namespace RAJA #endif // closing endif for header file include guard
23.759259
79
0.530008
ggeorgakoudis
fab586324b9eadc72505f5550a13a534918a5cb8
2,011
cc
C++
nacl_module/base58_unittest.cc
sowbug/happynine
0cb1169c67b411ab658187f5c936fdea2e40d372
[ "MIT" ]
4
2015-02-08T10:53:47.000Z
2021-11-08T10:21:42.000Z
nacl_module/base58_unittest.cc
sowbug/happynine
0cb1169c67b411ab658187f5c936fdea2e40d372
[ "MIT" ]
null
null
null
nacl_module/base58_unittest.cc
sowbug/happynine
0cb1169c67b411ab658187f5c936fdea2e40d372
[ "MIT" ]
null
null
null
// Copyright 2014 Mike Tsao <mike@sowbug.com> // Permission is hereby granted, free of charge, to any person // obtaining a copy of this software and associated documentation // files (the "Software"), to deal in the Software without // restriction, including without limitation the rights to use, copy, // modify, merge, publish, distribute, sublicense, and/or sell copies // of the Software, and to permit persons to whom the Software is // furnished to do so, subject to the following conditions: // The above copyright notice and this permission notice shall be // included in all copies or substantial portions of the Software. // THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, // EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF // MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND // NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS // BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN // ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN // CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE // SOFTWARE. #include <fstream> #include <iostream> #include "gtest/gtest.h" #include "jsoncpp/json/reader.h" #include "base58.h" TEST(Base58Test, ReferenceTests) { std::ifstream json; json.open("base58_encode_decode.json"); std::string json_string; while (!json.eof()) { std::string line; std::getline(json, line); json_string += line + "\n"; } json.close(); Json::Value obj; Json::Reader reader; bool parsingSuccessful = reader.parse(json_string, obj); if (!parsingSuccessful) { std::cerr << reader.getFormattedErrorMessages(); return; } for (Json::Value::iterator i = obj.begin(); i != obj.end(); ++i) { Json::Value& pair = *i; EXPECT_EQ(unhexlify(pair[0].asString()), Base58::fromBase58(pair[1].asString())); EXPECT_EQ(pair[1].asString(), Base58::toBase58(unhexlify(pair[0].asString()))); } }
33.516667
70
0.70363
sowbug
fabaa8405311da34ea23ced24a9ce91c1c6b751e
12,243
cpp
C++
CoreLib/CDate.cpp
NuLL3rr0r/blog-subscription-service
4458c0679229ad20ee446e1d1f7c58d1aa04b64d
[ "MIT" ]
6
2016-01-30T03:25:00.000Z
2022-01-23T23:29:22.000Z
CoreLib/CDate.cpp
NuLL3rr0r/blog-subscription-service
4458c0679229ad20ee446e1d1f7c58d1aa04b64d
[ "MIT" ]
1
2018-09-01T09:46:34.000Z
2019-01-12T15:05:50.000Z
CoreLib/CDate.cpp
NuLL3rr0r/blog-subscription-service
4458c0679229ad20ee446e1d1f7c58d1aa04b64d
[ "MIT" ]
6
2017-01-05T14:55:02.000Z
2021-03-30T14:05:10.000Z
/** * @file * @author Mamadou Babaei <info@babaei.net> * @version 0.1.0 * * @section LICENSE * * (The MIT License) * * Copyright (c) 2016 - 2021 Mamadou Babaei * * Permission is hereby granted, free of charge, to any person obtaining a copy * of this software and associated documentation files (the "Software"), to deal * in the Software without restriction, including without limitation the rights * to use, copy, modify, merge, publish, distribute, sublicense, and/or sell * copies of the Software, and to permit persons to whom the Software is * furnished to do so, subject to the following conditions: * * The above copyright notice and this permission notice shall be included in * all copies or substantial portions of the Software. * * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR * IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, * FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE * AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER * LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, * OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN * THE SOFTWARE. * * @section DESCRIPTION * * A Gregorian to Jalali and vice-versa date converter with optional support * for arabic and farsi glyphs. * Note that it's only accurate over a 33 years time span which is fine by me * for now. */ #include <sstream> #include <ctime> #include <boost/lexical_cast.hpp> #include <boost/locale.hpp> #include "CDate.hpp" #include "make_unique.hpp" using namespace std; using namespace boost; using namespace CoreLib::CDate; struct Now::Impl { struct tm *TimeInfo; CDate::Timezone Timezone; time_t RawTime; int DaylightSavingTime; int DayOfMonth; int DayOfWeek; int DayOfYear; int Hour; int Minutes; int Month; int Seconds; int Year; }; Now::Now(const Timezone &tz) : m_pimpl(make_unique<Now::Impl>()) { m_pimpl->Timezone = tz; time(&m_pimpl->RawTime); if (tz == Timezone::UTC) { m_pimpl->TimeInfo = gmtime(&m_pimpl->RawTime); } else { m_pimpl->TimeInfo = localtime(&m_pimpl->RawTime); } m_pimpl->Hour = m_pimpl->TimeInfo->tm_hour; // hour (0 - 23) m_pimpl->Minutes = m_pimpl->TimeInfo->tm_min; // minutes (0 - 59) /* A leap second is a plus or minus one-second adjustment to the Coordinated Universal Time (UTC) time scale that keeps it close to mean solar time. When a positive leap second is added at 23:59:60 UTC, it delays the start of the following UTC day (at 00:00:00 UTC) by one second, effectively slowing the UTC clock. */ m_pimpl->Seconds = m_pimpl->TimeInfo->tm_sec != 60 ? m_pimpl->TimeInfo->tm_sec : 59; // seconds (0 - 60, 60 = Leap second) m_pimpl->DayOfWeek = m_pimpl->TimeInfo->tm_wday + 1; // day of the week (0 - 6, 0 = Sunday) m_pimpl->DayOfMonth = m_pimpl->TimeInfo->tm_mday; // day of the month (1 - 31) m_pimpl->DayOfYear = m_pimpl->TimeInfo->tm_yday + 1; // day of the year (0 - 365) m_pimpl->Month = m_pimpl->TimeInfo->tm_mon + 1; // month (0 - 11, 0 = January) m_pimpl->Year = m_pimpl->TimeInfo->tm_year + 1900; // year since 1900 m_pimpl->DaylightSavingTime = m_pimpl->TimeInfo->tm_isdst; // Daylight saving time enabled (> 0), disabled (= 0), or unknown (< 0) } Now::~Now() = default; const struct tm *Now::TimeInfo() const { return m_pimpl->TimeInfo; } const CoreLib::CDate::Timezone &Now::TimezoneOffset() const { return m_pimpl->Timezone; } time_t Now::RawTime() const { return m_pimpl->RawTime; } int Now::DaylightSavingTime() const { return m_pimpl->DaylightSavingTime; } int Now::DayOfMonth() const { return m_pimpl->DayOfMonth; } int Now::DayOfWeek() const { return m_pimpl->DayOfWeek; } int Now::DayOfYear() const { return m_pimpl->DayOfYear; } int Now::Hour() const { return m_pimpl->Hour; } int Now::Minutes() const { return m_pimpl->Minutes; } int Now::Month() const { return m_pimpl->Month; } int Now::Seconds() const { return m_pimpl->Seconds; } int Now::Year() const { return m_pimpl->Year; } std::string DateConv::ToGregorian(const int jYear, const int jMonth, const int jDay) { boost::locale::generator generator; std::locale locale_gregorian = generator("en_US.UTF-8"); std::locale locale_jalali = generator("en_US.UTF-8@calendar=persian"); boost::locale::date_time jalali( boost::locale::period::year(jYear) + boost::locale::period::month(jMonth - 1) + boost::locale::period::day(jDay), locale_jalali); boost::locale::date_time gregorian(jalali.time(), locale_gregorian); std::stringstream ss; ss << std::setfill('0') << std::setw(4) << gregorian / boost::locale::period::year() << "/" << std::setfill('0') << std::setw(2) << (gregorian / boost::locale::period::month()) + 1 << "/" << std::setfill('0') << std::setw(2) << gregorian / boost::locale::period::day(); return ss.str(); } std::string DateConv::ToGregorian(const CDate::Timezone &tz) { Now n(tz); std::stringstream ss; ss << std::setfill('0') << std::setw(4) << n.Year() << "/" << std::setfill('0') << std::setw(2) << n.Month() << "/" << std::setfill('0') << std::setw(2) << n.DayOfMonth(); return ss.str(); } std::string DateConv::ToGregorian(const CDate::Now &now) { std::stringstream ss; ss << std::setfill('0') << std::setw(4) << now.Year() << "/" << std::setfill('0') << std::setw(2) << now.Month() << "/" << std::setfill('0') << std::setw(2) << now.DayOfMonth(); return ss.str(); } std::string DateConv::ToJalali(int gYear, int gMonth, int gDay) { boost::locale::generator generator; std::locale locale_gregorian = generator("en_US.UTF-8"); std::locale locale_jalali = generator("en_US.UTF-8@calendar=persian"); boost::locale::date_time gregorian( boost::locale::period::year(gYear) + boost::locale::period::month(gMonth - 1) + boost::locale::period::day(gDay), locale_gregorian); boost::locale::date_time jalali(gregorian.time(), locale_jalali); std::stringstream ss; ss << std::setfill('0') << std::setw(4) << jalali / boost::locale::period::year() << "/" << std::setfill('0') << std::setw(2) << (jalali / boost::locale::period::month()) + 1 << "/" << std::setfill('0') << std::setw(2) << jalali / boost::locale::period::day(); return ss.str(); } std::string DateConv::ToJalali(const CDate::Timezone &tz) { Now n(tz); return DateConv::ToJalali(n.DayOfMonth(), n.Month(), n.Year()); } std::string DateConv::ToJalali(const CDate::Now &now) { return DateConv::ToJalali(now.DayOfMonth(), now.Month(), now.Year()); } std::string DateConv::ToJalali(const std::time_t rawTime, const CDate::Timezone &tz) { struct tm *timeInfo; if (tz == Timezone::UTC) { timeInfo = gmtime(&rawTime); } else { timeInfo = localtime(&rawTime); } return DateConv::ToJalali(timeInfo->tm_year + 1900, timeInfo->tm_mon + 1, timeInfo->tm_mday); } std::string DateConv::Time(const CDate::Now &now) { std::stringstream ss; ss << std::setfill('0') << std::setw(2) << now.Hour() << "/" << std::setfill('0') << std::setw(2) << now.Minutes() << "/" << std::setfill('0') << std::setw(2) << now.Seconds(); return ss.str(); } std::string DateConv::DateTimeString(const std::time_t rawTime, const CDate::Timezone &tz) { if (tz == CDate::Timezone::UTC) { return asctime(gmtime(&rawTime)); } else { return asctime(localtime(&rawTime)); } } std::string DateConv::DateTimeString(const CDate::Now &now) { return asctime(now.TimeInfo()); } std::wstring DateConv::GetPersianDayOfWeek(const CDate::Now &now) { switch (now.DayOfWeek()) { case 7: return L"شنبه"; case 1: return L"یکشنبه"; case 2: return L"دوشنبه"; case 3: return L"سه شنبه"; case 4: return L"چهارشنبه"; case 5: return L"پنج شنبه"; case 6: return L"جمعه"; default: break; } return L""; } std::wstring DateConv::FormatToPersianNums(const std::string &date) { wstring res; for (size_t i = 0; i < date.length(); ++i) { switch(date[i]) { case 0x30: res += 0x06F0; // ۰ break; case 0x31: res += 0x06F1; // ۱ break; case 0x32: res += 0x06F2; // ۲ break; case 0x33: res += 0x06F3; // ۳ break; case 0x34: res += 0x06F4; // ۴ break; case 0x35: res += 0x06F5; // ۵ break; case 0x36: res += 0x06F6; // ۶ break; case 0x37: res += 0x06F7; // ۷ break; case 0x38: res += 0x06F8; // ۸ break; case 0x39: res += 0x06F9; // ۹ break; default: res += date[i]; break; } } return res; } std::wstring DateConv::FormatToPersianNums(const std::wstring &date) { wstring res; for (size_t i = 0; i < date.length(); ++i) { switch(date[i]) { case 0x30: res += 0x06F0; // ۰ break; case 0x31: res += 0x06F1; // ۱ break; case 0x32: res += 0x06F2; // ۲ break; case 0x33: res += 0x06F3; // ۳ break; case 0x34: res += 0x06F4; // ۴ break; case 0x35: res += 0x06F5; // ۵ break; case 0x36: res += 0x06F6; // ۶ break; case 0x37: res += 0x06F7; // ۷ break; case 0x38: res += 0x06F8; // ۸ break; case 0x39: res += 0x06F9; // ۹ break; default: res += date[i]; break; } } return res; } std::string DateConv::SecondsToHumanReadableTime(const std::time_t seconds) { tm *timeInfo = gmtime(&seconds); stringstream ss; int years = timeInfo->tm_year - 70; // years since 1900 if (years > 0) { ss << years; if (years == 1) { ss << " year"; } else { ss << " years"; } } int months = timeInfo->tm_mon; // months since January, 0-11 if (months > 0) { if (ss.str().size() > 0) { ss << ", "; } ss << months; if (months == 1) { ss << " month"; } else { ss << " months"; } } int days = timeInfo->tm_mday - 1; // day of the month, 1-31 if (days > 0) { if (ss.str().size() > 0) { ss << ", "; } ss << days; if (days == 1) { ss << " day"; } else { ss << " days"; } } int hours = timeInfo->tm_hour; // hours since midnight, 0-23 if (hours > 0) { if (ss.str().size() > 0) { ss << ", "; } ss << hours; if (hours == 1) { ss << " hour"; } else { ss << " hours"; } } int minutes = timeInfo->tm_min; // minutes after the hour, 0-59 if (minutes > 0) { if (ss.str().size() > 0) { ss << ", "; } ss << minutes; if (minutes == 1) { ss << " minute"; } else { ss << " minutes"; } } int seconds_ = timeInfo->tm_sec; // seconds after the minute, 0-61 if (seconds_ > 0) { if (ss.str().size() > 0) { ss << ", "; } ss << seconds_; if (seconds_ == 1) { ss << " second"; } else { ss << " seconds"; } } return ss.str(); }
24.633803
170
0.548477
NuLL3rr0r
fabadb519efc48bf5a5ca684942147b894107661
20,824
cpp
C++
tests/unit/utils/test_pdu.cpp
ETCLabs/sACN
af246e04106f2342937566097322ac1ebb86fae0
[ "Apache-2.0" ]
11
2020-08-06T16:08:29.000Z
2022-03-25T03:47:30.000Z
tests/unit/utils/test_pdu.cpp
ETCLabs/sACN
af246e04106f2342937566097322ac1ebb86fae0
[ "Apache-2.0" ]
19
2020-05-21T21:36:06.000Z
2021-03-26T14:07:51.000Z
tests/unit/utils/test_pdu.cpp
ETCLabs/sACN
af246e04106f2342937566097322ac1ebb86fae0
[ "Apache-2.0" ]
2
2021-05-04T05:19:31.000Z
2022-03-23T15:16:11.000Z
/****************************************************************************** * Copyright 2021 ETC Inc. * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. * You may obtain a copy of the License at * * http://www.apache.org/licenses/LICENSE-2.0 * * Unless required by applicable law or agreed to in writing, software * distributed under the License is distributed on an "AS IS" BASIS, * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. * See the License for the specific language governing permissions and * limitations under the License. ****************************************************************************** * This file is a part of sACN. For more information, go to: * https://github.com/ETCLabs/sACN *****************************************************************************/ #include "sacn/private/pdu.h" #include "etcpal/cpp/uuid.h" #include "etcpal_mock/common.h" #include "sacn/private/mem.h" #include "sacn/private/opts.h" #include "sacn_mock/private/common.h" #include "gtest/gtest.h" #include "fff.h" // Suppress strncpy() warning on Windows/MSVC. #ifdef _MSC_VER #pragma warning(disable : 4996) #endif #if SACN_DYNAMIC_MEM #define TestPdu TestPduDynamic #else #define TestPdu TestPduStatic #endif class TestPdu : public ::testing::Test { protected: void SetUp() override { etcpal_reset_all_fakes(); sacn_common_reset_all_fakes(); memset(test_buffer_, 0, SACN_MTU); } void TearDown() override {} void InitDataPacket(uint8_t* output, const SacnRemoteSource& source_info, const SacnRecvUniverseData& universe_data, uint8_t seq, bool terminated) { memset(output, 0, SACN_MTU); uint8_t* pcur = output; pcur = InitRootLayer(pcur, source_info, universe_data); pcur = InitFramingLayer(pcur, source_info, universe_data, seq, terminated); InitDmpLayer(pcur, universe_data); } uint8_t* InitRootLayer(uint8_t* output, const SacnRemoteSource& source_info, const SacnRecvUniverseData& universe_data) { return InitRootLayer(output, SACN_DATA_HEADER_SIZE + universe_data.slot_range.address_count, false, source_info.cid); } uint8_t* InitRootLayer(uint8_t* output, int pdu_length, bool extended, const EtcPalUuid& source_cid) { uint8_t* pcur = output; pcur += acn_pack_udp_preamble(pcur, ACN_UDP_PREAMBLE_SIZE); // Preamble & Post-amble Sizes + ACN Packet Identifier (*pcur) |= 0x70u; // Flags ACN_PDU_PACK_NORMAL_LEN(pcur, pdu_length - ACN_UDP_PREAMBLE_SIZE); // Length pcur += 2; etcpal_pack_u32b(pcur, extended ? ACN_VECTOR_ROOT_E131_EXTENDED : ACN_VECTOR_ROOT_E131_DATA); // Vector pcur += 4; memcpy(pcur, source_cid.data, ETCPAL_UUID_BYTES); // CID pcur += ETCPAL_UUID_BYTES; return pcur; } uint8_t* InitFramingLayer(uint8_t* output, const SacnRemoteSource& source_info, const SacnRecvUniverseData& universe_data, uint8_t seq, bool terminated) { return InitFramingLayer(output, universe_data.slot_range.address_count, VECTOR_E131_DATA_PACKET, source_info.name, universe_data.priority, seq, universe_data.preview, terminated, universe_data.universe_id); } uint8_t* InitFramingLayer(uint8_t* output, int slot_count, uint32_t vector, const char* source_name, uint8_t priority, uint8_t seq_num, bool preview, bool terminated, uint16_t universe_id) { uint8_t* pcur = output; (*pcur) |= 0x70u; // Flags ACN_PDU_PACK_NORMAL_LEN(pcur, SACN_DATA_HEADER_SIZE + slot_count - SACN_FRAMING_OFFSET); // Length pcur += 2; etcpal_pack_u32b(pcur, vector); // Vector pcur += 4; strncpy((char*)pcur, source_name, SACN_SOURCE_NAME_MAX_LEN); // Source Name pcur += SACN_SOURCE_NAME_MAX_LEN; (*pcur) = priority; // Priority ++pcur; etcpal_pack_u16b(pcur, 0u); // TODO: Synchronization Address pcur += 2; (*pcur) = seq_num; // Sequence Number ++pcur; // Options if (preview) *pcur |= SACN_OPTVAL_PREVIEW; if (terminated) *pcur |= SACN_OPTVAL_TERMINATED; // TODO: force_sync ++pcur; etcpal_pack_u16b(pcur, universe_id); // Universe pcur += 2; return pcur; } uint8_t* InitDmpLayer(uint8_t* output, const SacnRecvUniverseData& universe_data) { return InitDmpLayer(output, universe_data.start_code, universe_data.slot_range.address_count, universe_data.slots); } uint8_t* InitDmpLayer(uint8_t* output, uint8_t start_code, int slot_count, const uint8_t* pdata) { uint8_t* pcur = output; (*pcur) |= 0x70u; // Flags ACN_PDU_PACK_NORMAL_LEN(pcur, SACN_DATA_HEADER_SIZE + slot_count - SACN_DMP_OFFSET); // Length pcur += 2; (*pcur) = 0x02u; // Vector = VECTOR_DMP_SET_PROPERTY ++pcur; (*pcur) = 0xA1u; // Address Type & Data Type ++pcur; etcpal_pack_u16b(pcur, 0x0000u); // First Property Address pcur += 2; etcpal_pack_u16b(pcur, 0x0001u); // Address Increment pcur += 2; etcpal_pack_u16b(pcur, static_cast<uint16_t>(slot_count) + 1u); // Property value count pcur += 2; (*pcur) = start_code; // DMX512-A START Code ++pcur; if (pdata) { memcpy(pcur, pdata, slot_count); // Data pdata += slot_count; } return pcur; } void TestParseDataPacket(const SacnRemoteSource& source_info, const SacnRecvUniverseData& universe_data, uint8_t seq, bool terminated) { InitDataPacket(test_buffer_, source_info, universe_data, seq, terminated); SacnRemoteSource source_info_out; SacnRecvUniverseData universe_data_out; uint8_t seq_out; bool terminated_out; EXPECT_TRUE(parse_sacn_data_packet(&test_buffer_[SACN_FRAMING_OFFSET], SACN_MTU - SACN_FRAMING_OFFSET, &source_info_out, &seq_out, &terminated_out, &universe_data_out)); EXPECT_EQ(strcmp(source_info_out.name, source_info.name), 0); EXPECT_EQ(universe_data_out.universe_id, universe_data.universe_id); EXPECT_EQ(universe_data_out.priority, universe_data.priority); EXPECT_EQ(universe_data_out.preview, universe_data.preview); EXPECT_EQ(universe_data_out.start_code, universe_data.start_code); EXPECT_EQ(universe_data_out.slot_range.address_count, universe_data.slot_range.address_count); EXPECT_EQ(seq_out, seq); EXPECT_EQ(terminated_out, terminated); EXPECT_EQ(memcmp(universe_data_out.slots, universe_data.slots, universe_data.slot_range.address_count), 0); } void TestPackRootLayer(uint16_t pdu_length, bool extended, const EtcPalUuid& source_cid) { uint8_t result[SACN_MTU] = {0}; uint8_t expected[SACN_MTU] = {0}; int result_length = pack_sacn_root_layer(result, pdu_length, extended, &source_cid); int expected_length = (int)(InitRootLayer(expected, pdu_length, extended, source_cid) - expected); EXPECT_EQ(result_length, expected_length); EXPECT_EQ(memcmp(result, expected, result_length), 0); } void TestPackDataFramingLayer(uint16_t slot_count, uint32_t vector, const char* source_name, uint8_t priority, uint16_t sync_address, uint8_t seq_num, bool preview, bool terminated, bool force_sync, uint16_t universe_id) { uint8_t result[SACN_MTU] = {0}; uint8_t expected[SACN_MTU] = {0}; int result_length = pack_sacn_data_framing_layer(result, slot_count, vector, source_name, priority, sync_address, seq_num, preview, terminated, force_sync, universe_id); int expected_length = (int)(InitFramingLayer(expected, slot_count, vector, source_name, priority, seq_num, preview, terminated, universe_id) - expected); EXPECT_EQ(result_length, expected_length); EXPECT_EQ(memcmp(result, expected, result_length), 0); } void TestPackDmpLayerHeader(uint8_t start_code, uint16_t slot_count) { uint8_t result[SACN_MTU] = {0}; uint8_t expected[SACN_MTU] = {0}; int result_length = pack_sacn_dmp_layer_header(result, start_code, slot_count); int expected_length = (int)(InitDmpLayer(expected, start_code, slot_count, nullptr) - expected); EXPECT_EQ(result_length, expected_length); EXPECT_EQ(memcmp(result, expected, result_length), 0); } uint8_t test_buffer_[SACN_MTU]; }; TEST_F(TestPdu, SetSequenceWorks) { static constexpr uint8_t kTestSeqNum = 123u; uint8_t old_buf[SACN_MTU]; memcpy(old_buf, test_buffer_, SACN_MTU); SET_SEQUENCE(test_buffer_, kTestSeqNum); EXPECT_EQ(test_buffer_[SACN_SEQ_OFFSET], kTestSeqNum); SET_SEQUENCE(test_buffer_, 0u); EXPECT_EQ(memcmp(test_buffer_, old_buf, SACN_MTU), 0); } TEST_F(TestPdu, SetTerminatedOptWorks) { uint8_t old_buf[SACN_MTU]; memcpy(old_buf, test_buffer_, SACN_MTU); SET_TERMINATED_OPT(test_buffer_, true); EXPECT_GT(test_buffer_[SACN_OPTS_OFFSET] & SACN_OPTVAL_TERMINATED, 0u); SET_TERMINATED_OPT(test_buffer_, false); EXPECT_EQ(memcmp(test_buffer_, old_buf, SACN_MTU), 0); } TEST_F(TestPdu, TerminatedOptSetWorks) { test_buffer_[SACN_OPTS_OFFSET] |= SACN_OPTVAL_TERMINATED; EXPECT_TRUE(TERMINATED_OPT_SET(test_buffer_)); test_buffer_[SACN_OPTS_OFFSET] = 0u; EXPECT_FALSE(TERMINATED_OPT_SET(test_buffer_)); } TEST_F(TestPdu, SetPreviewOptWorks) { uint8_t old_buf[SACN_MTU]; memcpy(old_buf, test_buffer_, SACN_MTU); SET_PREVIEW_OPT(test_buffer_, true); EXPECT_GT(test_buffer_[SACN_OPTS_OFFSET] & SACN_OPTVAL_PREVIEW, 0u); SET_PREVIEW_OPT(test_buffer_, false); EXPECT_EQ(memcmp(test_buffer_, old_buf, SACN_MTU), 0); } TEST_F(TestPdu, SetPriorityWorks) { static constexpr uint8_t kTestPriority = 64u; uint8_t old_buf[SACN_MTU]; memcpy(old_buf, test_buffer_, SACN_MTU); SET_PRIORITY(test_buffer_, kTestPriority); EXPECT_EQ(test_buffer_[SACN_PRI_OFFSET], kTestPriority); SET_PRIORITY(test_buffer_, 0u); EXPECT_EQ(memcmp(test_buffer_, old_buf, SACN_MTU), 0); } TEST_F(TestPdu, SetDataSlotCountWorks) { uint16_t test_count = 256; SET_DATA_SLOT_COUNT(test_buffer_, test_count); EXPECT_EQ(ACN_PDU_LENGTH((&test_buffer_[ACN_UDP_PREAMBLE_SIZE])), static_cast<uint32_t>(SACN_DATA_HEADER_SIZE + test_count - ACN_UDP_PREAMBLE_SIZE)); EXPECT_EQ(ACN_PDU_LENGTH((&test_buffer_[SACN_FRAMING_OFFSET])), static_cast<uint32_t>(SACN_DATA_HEADER_SIZE + test_count - SACN_FRAMING_OFFSET)); EXPECT_EQ(ACN_PDU_LENGTH((&test_buffer_[SACN_DMP_OFFSET])), static_cast<uint32_t>(SACN_DATA_HEADER_SIZE + test_count - SACN_DMP_OFFSET)); SET_DATA_SLOT_COUNT(test_buffer_, 0u); EXPECT_EQ(ACN_PDU_LENGTH((&test_buffer_[ACN_UDP_PREAMBLE_SIZE])), static_cast<uint32_t>(SACN_DATA_HEADER_SIZE - ACN_UDP_PREAMBLE_SIZE)); EXPECT_EQ(ACN_PDU_LENGTH((&test_buffer_[SACN_FRAMING_OFFSET])), static_cast<uint32_t>(SACN_DATA_HEADER_SIZE - SACN_FRAMING_OFFSET)); EXPECT_EQ(ACN_PDU_LENGTH((&test_buffer_[SACN_DMP_OFFSET])), static_cast<uint32_t>(SACN_DATA_HEADER_SIZE - SACN_DMP_OFFSET)); } TEST_F(TestPdu, SetUniverseCountWorks) { uint16_t test_count = 256; SET_UNIVERSE_COUNT(test_buffer_, test_count); EXPECT_EQ(ACN_PDU_LENGTH((&test_buffer_[ACN_UDP_PREAMBLE_SIZE])), static_cast<uint32_t>(SACN_UNIVERSE_DISCOVERY_HEADER_SIZE + (test_count * 2u) - ACN_UDP_PREAMBLE_SIZE)); EXPECT_EQ(ACN_PDU_LENGTH((&test_buffer_[SACN_FRAMING_OFFSET])), static_cast<uint32_t>(SACN_UNIVERSE_DISCOVERY_HEADER_SIZE + (test_count * 2u) - SACN_FRAMING_OFFSET)); EXPECT_EQ( ACN_PDU_LENGTH((&test_buffer_[SACN_UNIVERSE_DISCOVERY_OFFSET])), static_cast<uint32_t>(SACN_UNIVERSE_DISCOVERY_HEADER_SIZE + (test_count * 2u) - SACN_UNIVERSE_DISCOVERY_OFFSET)); SET_UNIVERSE_COUNT(test_buffer_, 0u); EXPECT_EQ(ACN_PDU_LENGTH((&test_buffer_[ACN_UDP_PREAMBLE_SIZE])), static_cast<uint32_t>(SACN_UNIVERSE_DISCOVERY_HEADER_SIZE - ACN_UDP_PREAMBLE_SIZE)); EXPECT_EQ(ACN_PDU_LENGTH((&test_buffer_[SACN_FRAMING_OFFSET])), static_cast<uint32_t>(SACN_UNIVERSE_DISCOVERY_HEADER_SIZE - SACN_FRAMING_OFFSET)); EXPECT_EQ(ACN_PDU_LENGTH((&test_buffer_[SACN_UNIVERSE_DISCOVERY_OFFSET])), static_cast<uint32_t>(SACN_UNIVERSE_DISCOVERY_HEADER_SIZE - SACN_UNIVERSE_DISCOVERY_OFFSET)); } TEST_F(TestPdu, SetPageWorks) { static constexpr uint8_t kTestPage = 12u; uint8_t old_buf[SACN_MTU]; memcpy(old_buf, test_buffer_, SACN_MTU); SET_PAGE(test_buffer_, kTestPage); EXPECT_EQ(test_buffer_[SACN_UNIVERSE_DISCOVERY_PAGE_OFFSET], kTestPage); SET_PAGE(test_buffer_, 0u); EXPECT_EQ(memcmp(test_buffer_, old_buf, SACN_MTU), 0); } TEST_F(TestPdu, SetLastPageWorks) { static constexpr uint8_t kTestPage = 12u; uint8_t old_buf[SACN_MTU]; memcpy(old_buf, test_buffer_, SACN_MTU); SET_LAST_PAGE(test_buffer_, kTestPage); EXPECT_EQ(test_buffer_[SACN_UNIVERSE_DISCOVERY_LAST_PAGE_OFFSET], kTestPage); SET_LAST_PAGE(test_buffer_, 0u); EXPECT_EQ(memcmp(test_buffer_, old_buf, SACN_MTU), 0); } TEST_F(TestPdu, ParseSacnDataPacketWorks) { std::vector<uint8_t> data1 = {1u, 2u, 3u}; SacnRemoteSource source_info; SacnRecvUniverseData universe_data; source_info.cid = kEtcPalNullUuid; strcpy(source_info.name, "Test Name"); universe_data.universe_id = 1u; universe_data.priority = 100u; universe_data.preview = true; universe_data.start_code = SACN_STARTCODE_DMX; universe_data.slot_range.address_count = static_cast<uint16_t>(data1.size()); universe_data.slots = data1.data(); TestParseDataPacket(source_info, universe_data, 1u, false); std::vector<uint8_t> data2 = {7u, 6u, 5u, 4u, 3u}; source_info.cid = kEtcPalNullUuid; strcpy(source_info.name, "Name Test"); universe_data.universe_id = 123u; universe_data.priority = 64; universe_data.preview = false; universe_data.start_code = SACN_STARTCODE_PRIORITY; universe_data.slot_range.address_count = static_cast<uint16_t>(data2.size()); universe_data.slots = data2.data(); TestParseDataPacket(source_info, universe_data, 10u, true); std::vector<uint8_t> max_data; for (int i = 0; i < DMX_ADDRESS_COUNT; ++i) max_data.push_back(static_cast<uint8_t>(i)); source_info.cid = kEtcPalNullUuid; strcpy(source_info.name, "012345678901234567890123456789012345678901234567890123456789012"); universe_data.universe_id = 0xFFFFu; universe_data.priority = 0xFF; universe_data.preview = true; universe_data.start_code = 0xFF; universe_data.slot_range.address_count = DMX_ADDRESS_COUNT; universe_data.slots = max_data.data(); TestParseDataPacket(source_info, universe_data, 0xFFu, true); } TEST_F(TestPdu, ParseSacnDataPacketHandlesInvalid) { static const std::vector<uint8_t> kValidData = {1u, 2u, 3u}; static const SacnRemoteSource kValidSourceInfo = {1u, kEtcPalNullUuid, "Test Name"}; static const SacnRecvUniverseData kValidUniverseData = { 1u, 100u, true, false, SACN_STARTCODE_DMX, {1, 3}, kValidData.data()}; static constexpr size_t kBufLenTooShort = 87u; static constexpr uint32_t kNonDataVector = (VECTOR_E131_DATA_PACKET + 123u); static constexpr uint8_t kInvalidDmpVector = 0x04; static constexpr uint8_t kInvalidAddressDataType = 0x12; static constexpr uint16_t kInvalidFirstPropertyAddr = 0x9876; static constexpr uint16_t kInvalidAddrIncrement = 0x1234; static const size_t kValidBufferLength = (SACN_DATA_HEADER_SIZE + kValidData.size() - SACN_FRAMING_OFFSET); SacnRemoteSource source_info_out; SacnRecvUniverseData universe_data_out; uint8_t seq_out; bool terminated_out; uint8_t valid_data[SACN_MTU]; InitDataPacket(valid_data, kValidSourceInfo, kValidUniverseData, 1u, false); EXPECT_TRUE(parse_sacn_data_packet(&valid_data[SACN_FRAMING_OFFSET], kValidBufferLength, &source_info_out, &seq_out, &terminated_out, &universe_data_out)); // Start with null pointers and short buffer length EXPECT_FALSE(parse_sacn_data_packet(nullptr, kValidBufferLength, &source_info_out, &seq_out, &terminated_out, &universe_data_out)); EXPECT_FALSE(parse_sacn_data_packet(&valid_data[SACN_FRAMING_OFFSET], kBufLenTooShort, &source_info_out, &seq_out, &terminated_out, &universe_data_out)); EXPECT_FALSE(parse_sacn_data_packet(&valid_data[SACN_FRAMING_OFFSET], kValidBufferLength, nullptr, &seq_out, &terminated_out, &universe_data_out)); EXPECT_FALSE(parse_sacn_data_packet(&valid_data[SACN_FRAMING_OFFSET], kValidBufferLength, &source_info_out, nullptr, &terminated_out, &universe_data_out)); EXPECT_FALSE(parse_sacn_data_packet(&valid_data[SACN_FRAMING_OFFSET], kValidBufferLength, &source_info_out, &seq_out, nullptr, &universe_data_out)); EXPECT_FALSE(parse_sacn_data_packet(&valid_data[SACN_FRAMING_OFFSET], kValidBufferLength, &source_info_out, &seq_out, &terminated_out, nullptr)); // Now test buffer defects uint8_t vector_not_data[SACN_MTU]; InitDataPacket(vector_not_data, kValidSourceInfo, kValidUniverseData, 1u, false); etcpal_pack_u32b(&vector_not_data[SACN_FRAMING_OFFSET + 2], kNonDataVector); EXPECT_FALSE(parse_sacn_data_packet(&vector_not_data[SACN_FRAMING_OFFSET], kValidBufferLength, &source_info_out, &seq_out, &terminated_out, &universe_data_out)); uint8_t invalid_dmp_vector[SACN_MTU]; InitDataPacket(invalid_dmp_vector, kValidSourceInfo, kValidUniverseData, 1u, false); invalid_dmp_vector[SACN_FRAMING_OFFSET + 79] = kInvalidDmpVector; EXPECT_FALSE(parse_sacn_data_packet(&invalid_dmp_vector[SACN_FRAMING_OFFSET], kValidBufferLength, &source_info_out, &seq_out, &terminated_out, &universe_data_out)); uint8_t invalid_address_data_type[SACN_MTU]; InitDataPacket(invalid_address_data_type, kValidSourceInfo, kValidUniverseData, 1u, false); invalid_address_data_type[SACN_FRAMING_OFFSET + 80] = kInvalidAddressDataType; EXPECT_FALSE(parse_sacn_data_packet(&invalid_address_data_type[SACN_FRAMING_OFFSET], kValidBufferLength, &source_info_out, &seq_out, &terminated_out, &universe_data_out)); uint8_t invalid_first_property_addr[SACN_MTU]; InitDataPacket(invalid_first_property_addr, kValidSourceInfo, kValidUniverseData, 1u, false); etcpal_pack_u16b(&invalid_first_property_addr[SACN_FRAMING_OFFSET + 81], kInvalidFirstPropertyAddr); EXPECT_FALSE(parse_sacn_data_packet(&invalid_first_property_addr[SACN_FRAMING_OFFSET], kValidBufferLength, &source_info_out, &seq_out, &terminated_out, &universe_data_out)); uint8_t invalid_addr_increment[SACN_MTU]; InitDataPacket(invalid_addr_increment, kValidSourceInfo, kValidUniverseData, 1u, false); etcpal_pack_u16b(&invalid_addr_increment[SACN_FRAMING_OFFSET + 83], kInvalidAddrIncrement); EXPECT_FALSE(parse_sacn_data_packet(&invalid_addr_increment[SACN_FRAMING_OFFSET], kValidBufferLength, &source_info_out, &seq_out, &terminated_out, &universe_data_out)); uint8_t data_too_big[SACN_MTU]; InitDataPacket(data_too_big, kValidSourceInfo, kValidUniverseData, 1u, false); etcpal_pack_u16b(&data_too_big[SACN_FRAMING_OFFSET + 85], static_cast<uint16_t>(kValidData.size() + 2u)); EXPECT_FALSE(parse_sacn_data_packet(&data_too_big[SACN_FRAMING_OFFSET], kValidBufferLength, &source_info_out, &seq_out, &terminated_out, &universe_data_out)); } TEST_F(TestPdu, PackSacnRootLayerWorks) { TestPackRootLayer(1234u, false, etcpal::Uuid::V4().get()); TestPackRootLayer(9876u, true, etcpal::Uuid::V4().get()); TestPackRootLayer(0xFFFFu, true, etcpal::Uuid().get()); } TEST_F(TestPdu, PackSacnDataFramingLayerWorks) { TestPackDataFramingLayer(0x1234, 0x56789ABC, "A Test Name", 0xDE, 0xF012, 0x34, false, true, false, 0x5678); TestPackDataFramingLayer(0xFEDC, 0xBA987654, "Another Test Name", 0x32, 0x10FE, 0xDC, true, false, true, 0xBA98); TestPackDataFramingLayer(0xFFFF, 0xFFFFFFFF, "012345678901234567890123456789012345678901234567890123456789012", 0xFF, 0xFFFF, 0xFF, true, true, true, 0xFFFF); } TEST_F(TestPdu, PackSacnDmpLayerHeaderWorks) { TestPackDmpLayerHeader(0x12, 0x3456); TestPackDmpLayerHeader(0xFE, 0xDCBA); TestPackDmpLayerHeader(0xFF, 0xFFFF); }
43.20332
121
0.72354
ETCLabs
fabbc019a3348fd6f5da53809e4ddd7d785c9e6d
4,177
cpp
C++
tug_observers/tug_observer_plugins/tug_score_observer/src/ScorePlugin.cpp
annajohny/sdp
2f66e226fc335ae357001d07fbc74d30ab469509
[ "BSD-3-Clause" ]
null
null
null
tug_observers/tug_observer_plugins/tug_score_observer/src/ScorePlugin.cpp
annajohny/sdp
2f66e226fc335ae357001d07fbc74d30ab469509
[ "BSD-3-Clause" ]
null
null
null
tug_observers/tug_observer_plugins/tug_score_observer/src/ScorePlugin.cpp
annajohny/sdp
2f66e226fc335ae357001d07fbc74d30ab469509
[ "BSD-3-Clause" ]
null
null
null
/* This file is part of the tug model based diagnosis software for robots Copyright (c) 2015, Clemens Muehlbacher, Stefan Loigge All rights reserved. Redistribution and use in source and binary forms, with or without modification, are permitted provided that the following conditions are met: 1. Redistributions of source code must retain the above copyright notice, this list of conditions and the following disclaimer. 2. Redistributions in binary form must reproduce the above copyright notice, this list of conditions and the following disclaimer in the documentation and/or other materials provided with the distribution. 3. Neither the name of the copyright holder nor the names of its contributors may be used to endorse or promote products derived from this software without specific prior written permission. THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT HOLDER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. */ #include <tug_score_observer/ScorePlugin.h> #include <ros/ros.h> #include <tug_yaml/ProcessYaml.h> #include <pluginlib/class_list_macros.h> #include <tug_observers_msgs/observation.h> #include <string> #include <vector> namespace tug_observer_plugins_cpp { ScoresPlugin::ScoresPlugin() : ObserverPluginBase("scores") { } void ScoresPlugin::initialize(XmlRpc::XmlRpcValue params) { ROS_DEBUG("[ScoresPlugin::initialize] 1"); if (!params.hasMember("topics")) { ROS_DEBUG("No topics given for scores plugin"); throw std::runtime_error("No topics given for scores plugin"); } ROS_DEBUG("[ScoresPlugin::initialize] 2"); XmlRpc::XmlRpcValue topics = params["topics"]; for (int i = 0; i < topics.size(); ++i) { std::string name = ProcessYaml::getValue<std::string>("name", topics[i]); ROS_DEBUG("[ScoresPlugin::initialize] 2.1"); XmlRpc::XmlRpcValue &param = topics[i]; ROS_DEBUG("[ScoresPlugin::initialize] 2.2"); bases_.push_back(boost::make_shared<ScoreBase>(name, param, this)); } double main_loop_rate = ProcessYaml::getValue<double>("main_loop_rate", params, 1.0); timer_ = boost::make_shared<Timer>(boost::posix_time::microseconds(1./main_loop_rate * 1000. * 1000.), boost::bind(&ScoresPlugin::run, this)); } void ScoresPlugin::run() { if (!isStartedUp()) return; for (std::vector<boost::shared_ptr<ScoreBase> >::iterator it = bases_.begin(); it != bases_.end(); ++it) { ROS_DEBUG("ResourcesPlugin::nodeInfoCallback 3.3"); std::string name = (*it)->getName(); ROS_DEBUG_STREAM("ResourcesPlugin::nodeInfoCallback 3.4 " << name); std::vector<Observation> states = (*it)->estimateStates(); ROS_DEBUG_STREAM("ResourcesPlugin::nodeInfoCallback 3.5 " << " with number of states: " << states.size()); if (states.empty()) { reportError(name, "no_state_" + name, "For the topic with the name '" + name + "' no state could be estimated", tug_observers_msgs::observation::NO_STATE_FITS, (*it)->getLastTime()); } else { reportStates(name, states, (*it)->getLastTime()); ROS_DEBUG("ResourcesPlugin::nodeInfoCallback 3.5"); } } flush(); } } // namespace tug_observer_plugins_cpp PLUGINLIB_EXPORT_CLASS(tug_observer_plugins_cpp::ScoresPlugin, tug_observers::ObserverPluginBase)
49.141176
755
0.692124
annajohny
fabe8603965df282e9acfaaf5f9e46a918d36ffe
4,157
hpp
C++
src/gmatutil/util/datawriter/DataBucket.hpp
IncompleteWorlds/GMAT_2020
624de54d00f43831a4d46b46703e069d5c8c92ff
[ "Apache-2.0" ]
null
null
null
src/gmatutil/util/datawriter/DataBucket.hpp
IncompleteWorlds/GMAT_2020
624de54d00f43831a4d46b46703e069d5c8c92ff
[ "Apache-2.0" ]
null
null
null
src/gmatutil/util/datawriter/DataBucket.hpp
IncompleteWorlds/GMAT_2020
624de54d00f43831a4d46b46703e069d5c8c92ff
[ "Apache-2.0" ]
null
null
null
//$Id$ //------------------------------------------------------------------------------ // DataBucket //------------------------------------------------------------------------------ // GMAT: General Mission Analysis Tool // // Copyright (c) 2002 - 2020 United States Government as represented by the // Administrator of the National Aeronautics and Space Administration. // All Other Rights Reserved. // // Licensed under the Apache License, Version 2.0 (the "License"); // You may not use this file except in compliance with the License. // You may obtain a copy of the License at: // http://www.apache.org/licenses/LICENSE-2.0. // Unless required by applicable law or agreed to in writing, software // distributed under the License is distributed on an "AS IS" BASIS, // WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either // express or implied. See the License for the specific language // governing permissions and limitations under the License. // // Developed jointly by NASA/GSFC and Thinking Systems, Inc. under the FDSS II // contract, Task Order 08 // // Author: Darrel J. Conway, Thinking Systems, Inc. // Created: Jul 20, 2016 /** * Helper class used to collect data to be written using a DataWriter */ //------------------------------------------------------------------------------ #ifndef DataBucket_hpp #define DataBucket_hpp #include "utildefs.hpp" /** * A generic container used to store data for use by a DataWriter * * All members here are public to facilitate fast access */ class GMATUTIL_API DataBucket { public: DataBucket(); virtual ~DataBucket(); DataBucket(const DataBucket& db); DataBucket& operator=(const DataBucket& db); void SetFillToMatch(bool matchFill); void SetInitialRealValue(Real val); void SetInitialStringValue(std::string val); Integer AddRealContainer(const std::string &name, UnsignedInt numElements = 1U); Integer FindRealContainer(const std::string &name); Integer GetRealContainerSize(UnsignedInt index); Integer AddReal3DContainer(const std::string &name); Integer FindReal3DContainer(const std::string &name); Integer AddReal2DArray(const std::string &name); Integer FindReal2DArray(const std::string &name); Integer AddStringContainer(const std::string &name, UnsignedInt numElements = 1U); Integer FindStringContainer(const std::string &name); Integer GetStringContainerSize(UnsignedInt index); Integer AddString3DContainer(const std::string &name); Integer FindString3DContainer(const std::string &name); Integer AddString2DArray(const std::string &name); Integer FindString2DArray(const std::string &name); Integer AddPoint(); Integer GetContainerSize(); void Clear(); /// Vector to track state for the data, so empty elements can be detected RealArray elementStatus; /// Names of the real data collected StringArray realNames; /// The real data std::vector<std::vector<RealArray>> realValues; /// The size of each real data UnsignedIntArray realValueSize; /// Names of the real data collected for the 3D container StringArray real3DNames; /// The real data for the 3D container std::vector<std::vector<std::vector<RealArray>>> real3DValues; /// Names of the real 2D array data collected StringArray real2DArrayNames; /// The real 2D array data std::vector<std::vector<RealArray>> real2DArrayValues; /// Names of the string data collected StringArray stringNames; /// The string data std::vector<std::vector<StringArray>> stringValues; /// The size of each string data UnsignedIntArray stringValueSize; /// Names of the string data collected for the 3D container StringArray string3DNames; /// The string data for the 3D container std::vector<std::vector<std::vector<StringArray>>> string3DValues; /// Names of the string data 2D array collected StringArray string2DArrayNames; /// The string 2D array data std::vector<std::vector<StringArray>> string2DArrayValues; protected: bool fillToMatch; Real initialRealValue; std::string initialStringValue; }; #endif /* DataBucket_hpp */
36.147826
85
0.691364
IncompleteWorlds
fabf0ccfe8b774815ce0642000249c3ab15da1a2
723
cpp
C++
Kattis/Week2/Wk2b_height.cpp
Frodocz/CS2040C
d2e132a2f3cf56eef3f725990c7ffcf71a6a76d5
[ "MIT" ]
null
null
null
Kattis/Week2/Wk2b_height.cpp
Frodocz/CS2040C
d2e132a2f3cf56eef3f725990c7ffcf71a6a76d5
[ "MIT" ]
null
null
null
Kattis/Week2/Wk2b_height.cpp
Frodocz/CS2040C
d2e132a2f3cf56eef3f725990c7ffcf71a6a76d5
[ "MIT" ]
null
null
null
#include <iostream> #include <vector> using namespace std; void insertionSort(vector<int> &a) { int n = a.size(), cnt = 0; for (int i = 1; i < n; ++i) { int j = i - 1, tmp = a[i]; for (; j >= 0 && a[j] > tmp; --j) { a[j + 1] = a[j]; ++cnt; } a[j + 1] = tmp; } cout << cnt << "\n"; } int main() { ios_base::sync_with_stdio(false); cin.tie(NULL); int n, dataset; cin >> n; while (n--) { cin >> dataset; vector<int> a(20); int h; for (int i = 0; i < 20; i++) { cin >> h; a[i] = h; } cout << dataset << " "; insertionSort(a); } return 0; }
17.634146
43
0.391425
Frodocz
fac5c4647bc2bf981cd936717c068d814a9d8d89
1,638
cpp
C++
Antiplagiat/Antiplagiat/bin/Debug/22865.cpp
DmitryTheFirst/AntiplagiatVkCup
556d3fe2e5a630d06a7aa49f2af5dcb28667275a
[ "Apache-2.0" ]
1
2015-07-04T14:45:32.000Z
2015-07-04T14:45:32.000Z
Antiplagiat/Antiplagiat/bin/Debug/22865.cpp
DmitryTheFirst/AntiplagiatVkCup
556d3fe2e5a630d06a7aa49f2af5dcb28667275a
[ "Apache-2.0" ]
null
null
null
Antiplagiat/Antiplagiat/bin/Debug/22865.cpp
DmitryTheFirst/AntiplagiatVkCup
556d3fe2e5a630d06a7aa49f2af5dcb28667275a
[ "Apache-2.0" ]
null
null
null
#include <iostream> #include<vector> using namespace std; int reb1[10000],rebnext[10000],startreb[5000],zalup[5000],canbe[5000]; int n; int dfs(int v,int mark){ if (zalup[v]==mark)return 0; zalup[v]=mark; int sum=0; for (int i=startreb[v];i!=-1;i=rebnext[i]) { sum+=dfs(reb1[i],mark); } return sum+1; } int main() { int n; cin >> n; for (int i=0;i<n;++i) { startreb[i]=-1; zalup[i]=0; canbe[i]=0; } for (int i=0;i<n-1;++i){ cin >> reb1[i] >> reb1[i+n-1]; reb1[i]--;reb1[i+n-1]--; rebnext[i]=startreb[reb1[i+n-1]]; rebnext[i+n-1]=startreb[reb1[i]]; startreb[reb1[i]]=i+n-1; startreb[reb1[i+n-1]]=i; } //mark[0] //dfs(i,1); for (int i=0;i<n;++i) { int tmark=i+100; canbe[0]=tmark; zalup[i]=tmark; for (int j=0;j<n;++j) { int t=dfs(j,tmark); if (t) { for (int hui=n-1;hui>=t;hui--) { if (canbe[hui-t]==tmark) { canbe[hui]=tmark; //cout << "fun " << endl; } } //cout << j << " " << i << " " << " " << t << endl; //for (int hui=0; hui<n-1;++hui) cout << canbe[hui] << " " ; //cout << endl; } } } int cnt=0; for (int i=1;i<n-1;++i) { if (canbe[i]) cnt+=1; } cout << cnt << endl; for (int i=1;i<n-1;++i) { if (canbe[i]) { cout << i << " " << n-1-i << endl; } } return 0; }
24.088235
76
0.393773
DmitryTheFirst
facc03ab172bf9cedd1b8d129dcac5b66bcbe0ea
751
hh
C++
Tek2/Piscine-CPP/cpp_santa/TablePepeNoel.hh
Estayparadox/Epitech-Bundle
e4395961bb86bf494e3c84ab44c27b5a9afc6c6c
[ "MIT" ]
30
2018-10-26T12:54:11.000Z
2022-02-04T18:18:57.000Z
Tek2/Piscine-CPP/cpp_santa/TablePepeNoel.hh
Estayparadox/Epitech-Bundle
e4395961bb86bf494e3c84ab44c27b5a9afc6c6c
[ "MIT" ]
null
null
null
Tek2/Piscine-CPP/cpp_santa/TablePepeNoel.hh
Estayparadox/Epitech-Bundle
e4395961bb86bf494e3c84ab44c27b5a9afc6c6c
[ "MIT" ]
26
2018-11-20T18:11:39.000Z
2022-01-28T21:05:30.000Z
// // TablePepeNoel.hh for in /home/guarni_l/cpp_santa // // Made by Luca GUARNIERI // Login <guarni_l@epitech.net> // // Started on Sun Jan 17 03:56:38 2016 Luca GUARNIERI // Last update Sun Jan 17 07:44:22 2016 Luca GUARNIERI // #ifndef TABLEPEPENOEL_HH_ # define TABLEPEPENOEL_HH_ # include "LittlePony.hh" # include "Teddy.hh" # include "ConveyorBeltPepeNoel.hh" # include "ITable.hh" class TablePePeNoel : public ITable { private: Object **_obj; int _length; public: TablePePeNoel(); Object *getObj(int) const; virtual ~TablePePeNoel(); virtual void putObject(Object *); virtual Object *takeObject(std::string); virtual std::string *look() const; virtual ITable *createTable(); }; #endif /* TABLEPEPENOEL_HH_ */
20.861111
54
0.708389
Estayparadox
facc3ef96373a65ab1db80f8e76107a0a83577c9
16,030
cpp
C++
src/rpc/client.cpp
IntegralTeam/bitcoin-sv
fa3bfb58862262bd2eb8233fd65aee4a36eece28
[ "MIT" ]
null
null
null
src/rpc/client.cpp
IntegralTeam/bitcoin-sv
fa3bfb58862262bd2eb8233fd65aee4a36eece28
[ "MIT" ]
null
null
null
src/rpc/client.cpp
IntegralTeam/bitcoin-sv
fa3bfb58862262bd2eb8233fd65aee4a36eece28
[ "MIT" ]
null
null
null
// Copyright (c) 2010 Satoshi Nakamoto // Copyright (c) 2009-2016 The Bitcoin Core developers // Copyright (c) 2019 Bitcoin Association // Distributed under the Open BSV software license, see the accompanying file LICENSE. #include "rpc/client.h" #include "rpc/protocol.h" #include "util.h" #include "support/events.h" #include "chainparamsbase.h" #include "utilstrencodings.h" #include "clientversion.h" #include <cstdint> #include <set> #include <boost/algorithm/string/case_conv.hpp> // for to_lower() #include <univalue.h> #include <event2/buffer.h> #include <event2/keyvalq_struct.h> class CRPCConvertParam { public: std::string methodName; //!< method whose params want conversion int paramIdx; //!< 0-based idx of param to convert std::string paramName; //!< parameter name }; /** * Specifiy a (method, idx, name) here if the argument is a non-string RPC * argument and needs to be converted from JSON. * * @note Parameter indexes start from 0. */ static const CRPCConvertParam vRPCConvertParams[] = { {"setmocktime", 0, "timestamp"}, {"generate", 0, "nblocks"}, {"generate", 1, "maxtries"}, {"generatetoaddress", 0, "nblocks"}, {"generatetoaddress", 2, "maxtries"}, {"getnetworkhashps", 0, "nblocks"}, {"getnetworkhashps", 1, "height"}, {"sendtoaddress", 1, "amount"}, {"sendtoaddress", 4, "subtractfeefromamount"}, {"settxfee", 0, "amount"}, {"getreceivedbyaddress", 1, "minconf"}, {"getreceivedbyaccount", 1, "minconf"}, {"listreceivedbyaddress", 0, "minconf"}, {"listreceivedbyaddress", 1, "include_empty"}, {"listreceivedbyaddress", 2, "include_watchonly"}, {"listreceivedbyaccount", 0, "minconf"}, {"listreceivedbyaccount", 1, "include_empty"}, {"listreceivedbyaccount", 2, "include_watchonly"}, {"getbalance", 1, "minconf"}, {"getbalance", 2, "include_watchonly"}, {"getblockhash", 0, "height"}, {"waitforblockheight", 0, "height"}, {"waitforblockheight", 1, "timeout"}, {"waitforblock", 1, "timeout"}, {"waitfornewblock", 0, "timeout"}, {"move", 2, "amount"}, {"move", 3, "minconf"}, {"sendfrom", 2, "amount"}, {"sendfrom", 3, "minconf"}, {"listtransactions", 1, "count"}, {"listtransactions", 2, "skip"}, {"listtransactions", 3, "include_watchonly"}, {"listaccounts", 0, "minconf"}, {"listaccounts", 1, "include_watchonly"}, {"walletpassphrase", 1, "timeout"}, {"getblocktemplate", 0, "template_request"}, {"listsinceblock", 1, "target_confirmations"}, {"listsinceblock", 2, "include_watchonly"}, {"sendmany", 1, "amounts"}, {"sendmany", 2, "minconf"}, {"sendmany", 4, "subtractfeefrom"}, {"addmultisigaddress", 0, "nrequired"}, {"addmultisigaddress", 1, "keys"}, {"createmultisig", 0, "nrequired"}, {"createmultisig", 1, "keys"}, {"listunspent", 0, "minconf"}, {"listunspent", 1, "maxconf"}, {"listunspent", 2, "addresses"}, {"getblock", 1, "verbose"}, {"getblockheader", 1, "verbose"}, {"getchaintxstats", 0, "nblocks"}, {"gettransaction", 1, "include_watchonly"}, {"getrawtransaction", 1, "verbose"}, {"createrawtransaction", 0, "inputs"}, {"createrawtransaction", 1, "outputs"}, {"createrawtransaction", 2, "locktime"}, {"signrawtransaction", 1, "prevtxs"}, {"signrawtransaction", 2, "privkeys"}, {"sendrawtransaction", 1, "allowhighfees"}, {"fundrawtransaction", 1, "options"}, {"gettxout", 1, "n"}, {"gettxout", 2, "include_mempool"}, {"gettxoutproof", 0, "txids"}, {"lockunspent", 0, "unlock"}, {"lockunspent", 1, "transactions"}, {"importprivkey", 2, "rescan"}, {"importaddress", 2, "rescan"}, {"importaddress", 3, "p2sh"}, {"importpubkey", 2, "rescan"}, {"importmulti", 0, "requests"}, {"importmulti", 1, "options"}, {"verifychain", 0, "checklevel"}, {"verifychain", 1, "nblocks"}, {"pruneblockchain", 0, "height"}, {"keypoolrefill", 0, "newsize"}, {"getrawmempool", 0, "verbose"}, {"estimatefee", 0, "nblocks"}, {"prioritisetransaction", 1, "priority_delta"}, {"prioritisetransaction", 2, "fee_delta"}, {"setban", 2, "bantime"}, {"setban", 3, "absolute"}, {"setnetworkactive", 0, "state"}, {"getmempoolancestors", 1, "verbose"}, {"getmempooldescendants", 1, "verbose"}, {"disconnectnode", 1, "nodeid"}, {"getminingcandidate", 0, "coinbase"}, // Echo with conversion (For testing only) {"echojson", 0, "arg0"}, {"echojson", 1, "arg1"}, {"echojson", 2, "arg2"}, {"echojson", 3, "arg3"}, {"echojson", 4, "arg4"}, {"echojson", 5, "arg5"}, {"echojson", 6, "arg6"}, {"echojson", 7, "arg7"}, {"echojson", 8, "arg8"}, {"echojson", 9, "arg9"}, }; class CRPCConvertTable { private: std::set<std::pair<std::string, int>> members; std::set<std::pair<std::string, std::string>> membersByName; public: CRPCConvertTable(); bool convert(const std::string &method, int idx) { return (members.count(std::make_pair(method, idx)) > 0); } bool convert(const std::string &method, const std::string &name) { return (membersByName.count(std::make_pair(method, name)) > 0); } }; CRPCConvertTable::CRPCConvertTable() { const unsigned int n_elem = (sizeof(vRPCConvertParams) / sizeof(vRPCConvertParams[0])); for (unsigned int i = 0; i < n_elem; i++) { members.insert(std::make_pair(vRPCConvertParams[i].methodName, vRPCConvertParams[i].paramIdx)); membersByName.insert(std::make_pair(vRPCConvertParams[i].methodName, vRPCConvertParams[i].paramName)); } } static CRPCConvertTable rpcCvtTable; /** * Non-RFC4627 JSON parser, accepts internal values (such as numbers, true, * false, null) as well as objects and arrays. */ UniValue ParseNonRFCJSONValue(const std::string &strVal) { UniValue jVal; if (!jVal.read(std::string("[") + strVal + std::string("]")) || !jVal.isArray() || jVal.size() != 1) throw std::runtime_error(std::string("Error parsing JSON:") + strVal); return jVal[0]; } UniValue RPCConvertValues(const std::string &strMethod, const std::vector<std::string> &strParams) { UniValue params(UniValue::VARR); for (unsigned int idx = 0; idx < strParams.size(); idx++) { const std::string &strVal = strParams[idx]; if (!rpcCvtTable.convert(strMethod, idx)) { // insert string value directly params.push_back(strVal); } else { // parse string as JSON, insert bool/number/object/etc. value params.push_back(ParseNonRFCJSONValue(strVal)); } } return params; } UniValue RPCConvertNamedValues(const std::string &strMethod, const std::vector<std::string> &strParams) { UniValue params(UniValue::VOBJ); for (const std::string &s : strParams) { size_t pos = s.find("="); if (pos == std::string::npos) { throw(std::runtime_error("No '=' in named argument '" + s + "', this needs to be present for every " "argument (even if it is empty)")); } std::string name = s.substr(0, pos); std::string value = s.substr(pos + 1); if (!rpcCvtTable.convert(strMethod, name)) { // insert string value directly params.pushKV(name, value); } else { // parse string as JSON, insert bool/number/object/etc. value params.pushKV(name, ParseNonRFCJSONValue(value)); } } return params; } const char *http_errorstring(int code) { switch (code) { #if LIBEVENT_VERSION_NUMBER >= 0x02010300 case EVREQ_HTTP_TIMEOUT: return "timeout reached"; case EVREQ_HTTP_EOF: return "EOF reached"; case EVREQ_HTTP_INVALID_HEADER: return "error while reading header, or invalid header"; case EVREQ_HTTP_BUFFER_ERROR: return "error encountered while reading or writing"; case EVREQ_HTTP_REQUEST_CANCEL: return "request was canceled"; case EVREQ_HTTP_DATA_TOO_LONG: return "response body is larger than allowed"; #endif default: return "unknown"; } } #if LIBEVENT_VERSION_NUMBER >= 0x02010300 static void http_error_cb(enum evhttp_request_error err, void *ctx) { HTTPReply *reply = static_cast<HTTPReply *>(ctx); reply->error = err; } #endif void http_request_done(struct evhttp_request *req, void *ctx) { HTTPReply *reply = static_cast<HTTPReply *>(ctx); if (req == nullptr) { /** * If req is nullptr, it means an error occurred while connecting: the * error code will have been passed to http_error_cb. */ reply->status = 0; return; } reply->status = evhttp_request_get_response_code(req); struct evbuffer *buf = evhttp_request_get_input_buffer(req); if (buf) { size_t size = evbuffer_get_length(buf); const char *data = (const char *)evbuffer_pullup(buf, size); if (data) reply->body = std::string(data, size); evbuffer_drain(buf, size); } } UniValue CallRPC(const std::string &strMethod, const UniValue &params) { std::string host; // In preference order, we choose the following for the port: // 1. -rpcport // 2. port in -rpcconnect (ie following : in ipv4 or ]: in ipv6) // 3. default port for chain int port = BaseParams().RPCPort(); SplitHostPort(gArgs.GetArg("-rpcconnect", DEFAULT_RPCCONNECT), port, host); port = gArgs.GetArg("-rpcport", port); // Obtain event base raii_event_base base = obtain_event_base(); // Synchronously look up hostname raii_evhttp_connection evcon = obtain_evhttp_connection_base(base.get(), host, port); evhttp_connection_set_timeout( evcon.get(), gArgs.GetArg("-rpcclienttimeout", DEFAULT_HTTP_CLIENT_TIMEOUT)); HTTPReply response; raii_evhttp_request req = obtain_evhttp_request(http_request_done, (void *)&response); if (req == nullptr) throw std::runtime_error("create http request failed"); #if LIBEVENT_VERSION_NUMBER >= 0x02010300 evhttp_request_set_error_cb(req.get(), http_error_cb); #endif // Get credentials std::string strRPCUserColonPass; if (gArgs.GetArg("-rpcpassword", "") == "") { // Try fall back to cookie-based authentication if no password is // provided if (!GetAuthCookie(&strRPCUserColonPass)) { throw std::runtime_error(strprintf( _("Could not locate RPC credentials. No authentication cookie " "could be found, and RPC password is not set. See " "-rpcpassword and -stdinrpcpass. Configuration file: (%s)"), GetConfigFile(gArgs.GetArg("-conf", BITCOIN_CONF_FILENAME)).string().c_str())); } } else { strRPCUserColonPass = gArgs.GetArg("-rpcuser", "") + ":" + gArgs.GetArg("-rpcpassword", ""); } struct evkeyvalq *output_headers = evhttp_request_get_output_headers(req.get()); assert(output_headers); evhttp_add_header(output_headers, "Host", host.c_str()); evhttp_add_header(output_headers, "Connection", "close"); evhttp_add_header( output_headers, "Authorization", (std::string("Basic ") + EncodeBase64(strRPCUserColonPass)).c_str()); // Attach request data std::string strRequest = JSONRPCRequestObj(strMethod, params, 1).write() + "\n"; struct evbuffer *output_buffer = evhttp_request_get_output_buffer(req.get()); assert(output_buffer); evbuffer_add(output_buffer, strRequest.data(), strRequest.size()); // check if we should use a special wallet endpoint std::string endpoint = "/"; std::string walletName = gArgs.GetArg("-rpcwallet", ""); if (!walletName.empty()) { char *encodedURI = evhttp_uriencode(walletName.c_str(), walletName.size(), false); if (encodedURI) { endpoint = "/wallet/" + std::string(encodedURI); free(encodedURI); } else { throw CConnectionFailed("uri-encode failed"); } } int r = evhttp_make_request(evcon.get(), req.get(), EVHTTP_REQ_POST, endpoint.c_str()); // ownership moved to evcon in above call req.release(); if (r != 0) { throw CConnectionFailed("send http request failed"); } event_base_dispatch(base.get()); if (response.status == 0) { throw CConnectionFailed(strprintf( "couldn't connect to server: %s (code %d)\n(make sure server is " "running and you are connecting to the correct RPC port)", http_errorstring(response.error), response.error)); } else if (response.status == HTTP_UNAUTHORIZED) { throw std::runtime_error("incorrect rpcuser or rpcpassword (authorization failed)"); } else if (response.status >= 400 && response.status != HTTP_BAD_REQUEST && response.status != HTTP_NOT_FOUND && response.status != HTTP_INTERNAL_SERVER_ERROR) { throw std::runtime_error(strprintf("server returned HTTP error %d", response.status)); } else if (response.body.empty()) { throw std::runtime_error("no response from server"); } // Parse reply UniValue valReply(UniValue::VSTR); if (!valReply.read(response.body)) { throw std::runtime_error("couldn't parse reply from server"); } const UniValue &reply = valReply.get_obj(); if (reply.empty()) { throw std::runtime_error("expected reply to have result, error and id properties"); } return reply; } // // This function returns either one of EXIT_ codes when it's expected to stop // the process or CONTINUE_EXECUTION when it's expected to continue further. // int AppInitRPC(int argc, char *argv[], const std::string& usage_format, std::function<std::string(void)> help_message) { try { gArgs.ParseParameters(argc, argv); } catch(const std::exception& e) { fprintf(stderr, "Error parsing program options: %s\n", e.what()); return EXIT_FAILURE; } if (gArgs.IsArgSet("-?") || gArgs.IsArgSet("-h") || gArgs.IsArgSet("-help") || gArgs.IsArgSet("-version")) { std::string usage = strprintf(_("%s RPC client version"), _(PACKAGE_NAME)) + " " + FormatFullVersion() + "\n"; if (!gArgs.IsArgSet("-version")) usage += usage_format + "\n" + help_message(); fprintf(stdout, "%s", usage.c_str()); if (argc < 2) { fprintf(stderr, "Error: too few parameters\n"); return EXIT_FAILURE; } return EXIT_SUCCESS; } if (!fs::is_directory(GetDataDir(false))) { fprintf(stderr, "Error: Specified data directory \"%s\" does not exist.\n", gArgs.GetArg("-datadir", "").c_str()); return EXIT_FAILURE; } try { gArgs.ReadConfigFile(gArgs.GetArg("-conf", BITCOIN_CONF_FILENAME)); } catch (const std::exception &e) { fprintf(stderr, "Error reading configuration file: %s\n", e.what()); return EXIT_FAILURE; } // Check for -testnet or -regtest parameter (BaseParams() calls are only // valid after this clause) try { SelectBaseParams(ChainNameFromCommandLine()); } catch (const std::exception &e) { fprintf(stderr, "Error: %s\n", e.what()); return EXIT_FAILURE; } if (gArgs.GetBoolArg("-rpcssl", false)) { fprintf(stderr, "Error: SSL mode for RPC (-rpcssl) is no longer supported.\n"); return EXIT_FAILURE; } return CONTINUE_EXECUTION; }
34.252137
125
0.61441
IntegralTeam
facd605b0a237d940d86fd9a0bcca8318f4233da
3,049
cpp
C++
B2G/gecko/tools/reorder/elf_symbol_table.cpp
wilebeast/FireFox-OS
43067f28711d78c429a1d6d58c77130f6899135f
[ "Apache-2.0" ]
3
2015-08-31T15:24:31.000Z
2020-04-24T20:31:29.000Z
B2G/gecko/tools/reorder/elf_symbol_table.cpp
wilebeast/FireFox-OS
43067f28711d78c429a1d6d58c77130f6899135f
[ "Apache-2.0" ]
null
null
null
B2G/gecko/tools/reorder/elf_symbol_table.cpp
wilebeast/FireFox-OS
43067f28711d78c429a1d6d58c77130f6899135f
[ "Apache-2.0" ]
3
2015-07-29T07:17:15.000Z
2020-11-04T06:55:37.000Z
/* This Source Code Form is subject to the terms of the Mozilla Public * License, v. 2.0. If a copy of the MPL was not distributed with this * file, You can obtain one at http://mozilla.org/MPL/2.0/. */ #include <string> #include <fstream> #include <errno.h> #include <fcntl.h> #include <stdlib.h> #include <stdio.h> #include <unistd.h> #include <sys/stat.h> #include "elf_symbol_table.h" #include "elf_utils.h" int elf_symbol_table::init(const char *name) { // Open the file readonly. m_fd = open(name, O_RDONLY); if (m_fd < 0) { perror(name); return m_fd; } // Get its size. struct stat statbuf; if (fstat(m_fd, &statbuf) < 0) { perror(name); return -1; } m_size = statbuf.st_size; // Memory map it. m_mapping = mmap(0, m_size, PROT_READ, MAP_SHARED, m_fd, 0); if (m_mapping == MAP_FAILED) { perror(name); return -1; } // Make sure it's an ELF header. const Elf32_Ehdr *ehdr = reinterpret_cast<const Elf32_Ehdr *>(m_mapping); if (elf_verify_header(ehdr) < 0) return -1; const char *mapping = reinterpret_cast<const char *>(m_mapping); // Find the section headers const Elf32_Shdr *shdrs = reinterpret_cast<const Elf32_Shdr *>(mapping + ehdr->e_shoff); // find the section header string table, .shstrtab const Elf32_Shdr *shstrtabsh = shdrs + ehdr->e_shstrndx; const char *shstrtab = mapping + shstrtabsh->sh_offset; // parse the sections we care about int shndx = 0; const Elf32_Shdr *shlimit = shdrs + ehdr->e_shnum; for (const Elf32_Shdr *shdr = shdrs; shdr < shlimit; ++shdr, ++shndx) { basic_string<char> name(shstrtab + shdr->sh_name); if (name == ".symtab") { m_symbols = reinterpret_cast<const Elf32_Sym *>(mapping + shdr->sh_offset); m_nsymbols = shdr->sh_size / sizeof(Elf32_Sym); } else if (name == ".strtab") { m_strtab = mapping + shdr->sh_offset; } else if (name == ".text") { m_text_shndx = shndx; } } // Parse the symbol table const Elf32_Sym *limit = m_symbols + m_nsymbols; for (const Elf32_Sym *sym = m_symbols; sym < limit; ++sym) { if (is_function(sym)) { #ifdef DEBUG hex(cout); cout << sym->st_value << endl; #endif m_rsymtab.put(sym->st_value, sym->st_value + sym->st_size, sym); } } return 0; } int elf_symbol_table::finish() { if (m_mapping != MAP_FAILED) { munmap(m_mapping, m_size); m_mapping = MAP_FAILED; } if (m_fd >= 0) { close(m_fd); m_fd = -1; } return 0; } const Elf32_Sym * elf_symbol_table::lookup(unsigned int addr) const { rsymtab_t::const_iterator result = m_rsymtab.get(addr); return result != m_rsymtab.end() ? reinterpret_cast<const Elf32_Sym *>(*result) : 0; } const char * elf_symbol_table::get_symbol_name(const Elf32_Sym *sym) const { return m_strtab + sym->st_name; }
25.838983
88
0.61102
wilebeast
fad2bc97addb647194245af0db622327adba7dc8
516,372
cpp
C++
gtsam/3rdparty/GeographicLib/src/GeodesicExact.cpp
karamach/gtsam
35f9b710163a1d14d8dc4fcf50b8dce6e0bf7e5b
[ "BSD-3-Clause" ]
105
2017-12-02T14:39:49.000Z
2022-02-19T18:20:25.000Z
trunk/gtsam/3rdparty/GeographicLib/src/GeodesicExact.cpp
shaolinbit/PPP-BayesTree
6f469775277a1a33447bf4c19603c796c2c63c75
[ "MIT" ]
5
2016-07-05T16:21:08.000Z
2020-05-13T16:50:42.000Z
trunk/gtsam/3rdparty/GeographicLib/src/GeodesicExact.cpp
shaolinbit/PPP-BayesTree
6f469775277a1a33447bf4c19603c796c2c63c75
[ "MIT" ]
66
2015-06-01T11:22:38.000Z
2022-02-18T11:03:57.000Z
/** * \file GeodesicExact.cpp * \brief Implementation for GeographicLib::GeodesicExact class * * Copyright (c) Charles Karney (2012-2013) <charles@karney.com> and licensed * under the MIT/X11 License. For more information, see * http://geographiclib.sourceforge.net/ * * This is a reformulation of the geodesic problem. The notation is as * follows: * - at a general point (no suffix or 1 or 2 as suffix) * - phi = latitude * - beta = latitude on auxiliary sphere * - omega = longitude on auxiliary sphere * - lambda = longitude * - alpha = azimuth of great circle * - sigma = arc length along great circle * - s = distance * - tau = scaled distance (= sigma at multiples of pi/2) * - at northwards equator crossing * - beta = phi = 0 * - omega = lambda = 0 * - alpha = alpha0 * - sigma = s = 0 * - a 12 suffix means a difference, e.g., s12 = s2 - s1. * - s and c prefixes mean sin and cos **********************************************************************/ #include <GeographicLib/GeodesicExact.hpp> #include <GeographicLib/GeodesicLineExact.hpp> #if defined(_MSC_VER) // Squelch warnings about potentially uninitialized local variables # pragma warning (disable: 4701) #endif namespace GeographicLib { using namespace std; // Underflow guard. We require // tiny_ * epsilon() > 0 // tiny_ + epsilon() == epsilon() const Math::real GeodesicExact::tiny_ = sqrt(numeric_limits<real>::min()); const Math::real GeodesicExact::tol0_ = numeric_limits<real>::epsilon(); // Increase multiplier in defn of tol1_ from 100 to 200 to fix inverse case // 52.784459512564 0 -52.784459512563990912 179.634407464943777557 // which otherwise failed for Visual Studio 10 (Release and Debug) const Math::real GeodesicExact::tol1_ = 200 * tol0_; const Math::real GeodesicExact::tol2_ = sqrt(tol0_); // Check on bisection interval const Math::real GeodesicExact::tolb_ = tol0_ * tol2_; const Math::real GeodesicExact::xthresh_ = 1000 * tol2_; GeodesicExact::GeodesicExact(real a, real f) : _a(a) , _f(f <= 1 ? f : 1/f) , _f1(1 - _f) , _e2(_f * (2 - _f)) , _ep2(_e2 / Math::sq(_f1)) // e2 / (1 - e2) , _n(_f / ( 2 - _f)) , _b(_a * _f1) , _c2((Math::sq(_a) + Math::sq(_b) * (_e2 == 0 ? 1 : (_e2 > 0 ? Math::atanh(sqrt(_e2)) : atan(sqrt(-_e2))) / sqrt(abs(_e2))))/2) // authalic radius squared // The sig12 threshold for "really short". Using the auxiliary sphere // solution with dnm computed at (bet1 + bet2) / 2, the relative error in // the azimuth consistency check is sig12^2 * abs(f) * min(1, 1-f/2) / 2. // (Error measured for 1/100 < b/a < 100 and abs(f) >= 1/1000. For a // given f and sig12, the max error occurs for lines near the pole. If // the old rule for computing dnm = (dn1 + dn2)/2 is used, then the error // increases by a factor of 2.) Setting this equal to epsilon gives // sig12 = etol2. Here 0.1 is a safety factor (error decreased by 100) // and max(0.001, abs(f)) stops etol2 getting too large in the nearly // spherical case. , _etol2(0.1 * tol2_ / sqrt( max(real(0.001), abs(_f)) * min(real(1), 1 - _f/2) / 2 )) { if (!(Math::isfinite(_a) && _a > 0)) throw GeographicErr("Major radius is not positive"); if (!(Math::isfinite(_b) && _b > 0)) throw GeographicErr("Minor radius is not positive"); C4coeff(); } const GeodesicExact GeodesicExact::WGS84(Constants::WGS84_a<real>(), Constants::WGS84_f<real>()); Math::real GeodesicExact::CosSeries(real sinx, real cosx, const real c[], int n) throw() { // Evaluate // y = sum(c[i] * cos((2*i+1) * x), i, 0, n-1) // using Clenshaw summation. // Approx operation count = (n + 5) mult and (2 * n + 2) add c += n ; // Point to one beyond last element real ar = 2 * (cosx - sinx) * (cosx + sinx), // 2 * cos(2 * x) y0 = n & 1 ? *--c : 0, y1 = 0; // accumulators for sum // Now n is even n /= 2; while (n--) { // Unroll loop x 2, so accumulators return to their original role y1 = ar * y0 - y1 + *--c; y0 = ar * y1 - y0 + *--c; } return cosx * (y0 - y1); // cos(x) * (y0 - y1) } GeodesicLineExact GeodesicExact::Line(real lat1, real lon1, real azi1, unsigned caps) const throw() { return GeodesicLineExact(*this, lat1, lon1, azi1, caps); } Math::real GeodesicExact::GenDirect(real lat1, real lon1, real azi1, bool arcmode, real s12_a12, unsigned outmask, real& lat2, real& lon2, real& azi2, real& s12, real& m12, real& M12, real& M21, real& S12) const throw() { return GeodesicLineExact(*this, lat1, lon1, azi1, // Automatically supply DISTANCE_IN if necessary outmask | (arcmode ? NONE : DISTANCE_IN)) . // Note the dot! GenPosition(arcmode, s12_a12, outmask, lat2, lon2, azi2, s12, m12, M12, M21, S12); } Math::real GeodesicExact::GenInverse(real lat1, real lon1, real lat2, real lon2, unsigned outmask, real& s12, real& azi1, real& azi2, real& m12, real& M12, real& M21, real& S12) const throw() { outmask &= OUT_ALL; // Compute longitude difference (AngDiff does this carefully). Result is // in [-180, 180] but -180 is only for west-going geodesics. 180 is for // east-going and meridional geodesics. real lon12 = Math::AngDiff(Math::AngNormalize(lon1), Math::AngNormalize(lon2)); // If very close to being on the same half-meridian, then make it so. lon12 = AngRound(lon12); // Make longitude difference positive. int lonsign = lon12 >= 0 ? 1 : -1; lon12 *= lonsign; // If really close to the equator, treat as on equator. lat1 = AngRound(lat1); lat2 = AngRound(lat2); // Swap points so that point with higher (abs) latitude is point 1 int swapp = abs(lat1) >= abs(lat2) ? 1 : -1; if (swapp < 0) { lonsign *= -1; swap(lat1, lat2); } // Make lat1 <= 0 int latsign = lat1 < 0 ? 1 : -1; lat1 *= latsign; lat2 *= latsign; // Now we have // // 0 <= lon12 <= 180 // -90 <= lat1 <= 0 // lat1 <= lat2 <= -lat1 // // longsign, swapp, latsign register the transformation to bring the // coordinates to this canonical form. In all cases, 1 means no change was // made. We make these transformations so that there are few cases to // check, e.g., on verifying quadrants in atan2. In addition, this // enforces some symmetries in the results returned. real phi, sbet1, cbet1, sbet2, cbet2, s12x, m12x; // Initialize for the meridian. No longitude calculation is done in this // case to let the parameter default to 0. EllipticFunction E(-_ep2); phi = lat1 * Math::degree<real>(); // Ensure cbet1 = +epsilon at poles sbet1 = _f1 * sin(phi); cbet1 = lat1 == -90 ? tiny_ : cos(phi); SinCosNorm(sbet1, cbet1); phi = lat2 * Math::degree<real>(); // Ensure cbet2 = +epsilon at poles sbet2 = _f1 * sin(phi); cbet2 = abs(lat2) == 90 ? tiny_ : cos(phi); SinCosNorm(sbet2, cbet2); // If cbet1 < -sbet1, then cbet2 - cbet1 is a sensitive measure of the // |bet1| - |bet2|. Alternatively (cbet1 >= -sbet1), abs(sbet2) + sbet1 is // a better measure. This logic is used in assigning calp2 in Lambda12. // Sometimes these quantities vanish and in that case we force bet2 = +/- // bet1 exactly. An example where is is necessary is the inverse problem // 48.522876735459 0 -48.52287673545898293 179.599720456223079643 // which failed with Visual Studio 10 (Release and Debug) if (cbet1 < -sbet1) { if (cbet2 == cbet1) sbet2 = sbet2 < 0 ? sbet1 : -sbet1; } else { if (abs(sbet2) == -sbet1) cbet2 = cbet1; } real dn1 = (_f >= 0 ? sqrt(1 + _ep2 * Math::sq(sbet1)) : sqrt(1 - _e2 * Math::sq(cbet1)) / _f1), dn2 = (_f >= 0 ? sqrt(1 + _ep2 * Math::sq(sbet2)) : sqrt(1 - _e2 * Math::sq(cbet2)) / _f1); real lam12 = lon12 * Math::degree<real>(), slam12 = abs(lon12) == 180 ? 0 : sin(lam12), clam12 = cos(lam12); // lon12 == 90 isn't interesting real a12, sig12, calp1, salp1, calp2, salp2; bool meridian = lat1 == -90 || slam12 == 0; if (meridian) { // Endpoints are on a single full meridian, so the geodesic might lie on // a meridian. calp1 = clam12; salp1 = slam12; // Head to the target longitude calp2 = 1; salp2 = 0; // At the target we're heading north real // tan(bet) = tan(sig) * cos(alp) ssig1 = sbet1, csig1 = calp1 * cbet1, ssig2 = sbet2, csig2 = calp2 * cbet2; // sig12 = sig2 - sig1 sig12 = atan2(max(csig1 * ssig2 - ssig1 * csig2, real(0)), csig1 * csig2 + ssig1 * ssig2); { real dummy; Lengths(E, sig12, ssig1, csig1, dn1, ssig2, csig2, dn2, cbet1, cbet2, s12x, m12x, dummy, (outmask & GEODESICSCALE) != 0U, M12, M21); } // Add the check for sig12 since zero length geodesics might yield m12 < // 0. Test case was // // echo 20.001 0 20.001 0 | GeodSolve -i // // In fact, we will have sig12 > pi/2 for meridional geodesic which is // not a shortest path. if (sig12 < 1 || m12x >= 0) { m12x *= _b; s12x *= _b; a12 = sig12 / Math::degree<real>(); } else // m12 < 0, i.e., prolate and too close to anti-podal meridian = false; } real omg12; if (!meridian && sbet1 == 0 && // and sbet2 == 0 // Mimic the way Lambda12 works with calp1 = 0 (_f <= 0 || lam12 <= Math::pi<real>() - _f * Math::pi<real>())) { // Geodesic runs along equator calp1 = calp2 = 0; salp1 = salp2 = 1; s12x = _a * lam12; sig12 = omg12 = lam12 / _f1; m12x = _b * sin(sig12); if (outmask & GEODESICSCALE) M12 = M21 = cos(sig12); a12 = lon12 / _f1; } else if (!meridian) { // Now point1 and point2 belong within a hemisphere bounded by a // meridian and geodesic is neither meridional or equatorial. // Figure a starting point for Newton's method real dnm; sig12 = InverseStart(E, sbet1, cbet1, dn1, sbet2, cbet2, dn2, lam12, salp1, calp1, salp2, calp2, dnm); if (sig12 >= 0) { // Short lines (InverseStart sets salp2, calp2, dnm) s12x = sig12 * _b * dnm; m12x = Math::sq(dnm) * _b * sin(sig12 / dnm); if (outmask & GEODESICSCALE) M12 = M21 = cos(sig12 / dnm); a12 = sig12 / Math::degree<real>(); omg12 = lam12 / (_f1 * dnm); } else { // Newton's method. This is a straightforward solution of f(alp1) = // lambda12(alp1) - lam12 = 0 with one wrinkle. f(alp) has exactly one // root in the interval (0, pi) and its derivative is positive at the // root. Thus f(alp) is positive for alp > alp1 and negative for alp < // alp1. During the course of the iteration, a range (alp1a, alp1b) is // maintained which brackets the root and with each evaluation of // f(alp) the range is shrunk, if possible. Newton's method is // restarted whenever the derivative of f is negative (because the new // value of alp1 is then further from the solution) or if the new // estimate of alp1 lies outside (0,pi); in this case, the new starting // guess is taken to be (alp1a + alp1b) / 2. real ssig1, csig1, ssig2, csig2; unsigned numit = 0; // Bracketing range real salp1a = tiny_, calp1a = 1, salp1b = tiny_, calp1b = -1; for (bool tripn = false, tripb = false; numit < maxit2_; ++numit) { // 1/4 meridan = 10e6 m and random input. max err is estimated max // error in nm (checking solution of inverse problem by direct // solution). iter is mean and sd of number of iterations // // max iter // log2(b/a) err mean sd // -7 387 5.33 3.68 // -6 345 5.19 3.43 // -5 269 5.00 3.05 // -4 210 4.76 2.44 // -3 115 4.55 1.87 // -2 69 4.35 1.38 // -1 36 4.05 1.03 // 0 15 0.01 0.13 // 1 25 5.10 1.53 // 2 96 5.61 2.09 // 3 318 6.02 2.74 // 4 985 6.24 3.22 // 5 2352 6.32 3.44 // 6 6008 6.30 3.45 // 7 19024 6.19 3.30 real dv; real v = Lambda12(sbet1, cbet1, dn1, sbet2, cbet2, dn2, salp1, calp1, salp2, calp2, sig12, ssig1, csig1, ssig2, csig2, E, omg12, numit < maxit1_, dv) - lam12; // 2 * tol0 is approximately 1 ulp for a number in [0, pi]. // Reversed test to allow escape with NaNs if (tripb || !(abs(v) >= (tripn ? 8 : 2) * tol0_)) break; // Update bracketing values if (v > 0 && (numit > maxit1_ || calp1/salp1 > calp1b/salp1b)) { salp1b = salp1; calp1b = calp1; } else if (v < 0 && (numit > maxit1_ || calp1/salp1 < calp1a/salp1a)) { salp1a = salp1; calp1a = calp1; } if (numit < maxit1_ && dv > 0) { real dalp1 = -v/dv; real sdalp1 = sin(dalp1), cdalp1 = cos(dalp1), nsalp1 = salp1 * cdalp1 + calp1 * sdalp1; if (nsalp1 > 0 && abs(dalp1) < Math::pi<real>()) { calp1 = calp1 * cdalp1 - salp1 * sdalp1; salp1 = nsalp1; SinCosNorm(salp1, calp1); // In some regimes we don't get quadratic convergence because // slope -> 0. So use convergence conditions based on epsilon // instead of sqrt(epsilon). tripn = abs(v) <= 16 * tol0_; continue; } } // Either dv was not postive or updated value was outside legal // range. Use the midpoint of the bracket as the next estimate. // This mechanism is not needed for the WGS84 ellipsoid, but it does // catch problems with more eccentric ellipsoids. Its efficacy is // such for the WGS84 test set with the starting guess set to alp1 = // 90deg: // the WGS84 test set: mean = 5.21, sd = 3.93, max = 24 // WGS84 and random input: mean = 4.74, sd = 0.99 salp1 = (salp1a + salp1b)/2; calp1 = (calp1a + calp1b)/2; SinCosNorm(salp1, calp1); tripn = false; tripb = (abs(salp1a - salp1) + (calp1a - calp1) < tolb_ || abs(salp1 - salp1b) + (calp1 - calp1b) < tolb_); } { real dummy; Lengths(E, sig12, ssig1, csig1, dn1, ssig2, csig2, dn2, cbet1, cbet2, s12x, m12x, dummy, (outmask & GEODESICSCALE) != 0U, M12, M21); } m12x *= _b; s12x *= _b; a12 = sig12 / Math::degree<real>(); } } if (outmask & DISTANCE) s12 = 0 + s12x; // Convert -0 to 0 if (outmask & REDUCEDLENGTH) m12 = 0 + m12x; // Convert -0 to 0 if (outmask & AREA) { real // From Lambda12: sin(alp1) * cos(bet1) = sin(alp0) salp0 = salp1 * cbet1, calp0 = Math::hypot(calp1, salp1 * sbet1); // calp0 > 0 real alp12; if (calp0 != 0 && salp0 != 0) { real // From Lambda12: tan(bet) = tan(sig) * cos(alp) ssig1 = sbet1, csig1 = calp1 * cbet1, ssig2 = sbet2, csig2 = calp2 * cbet2, k2 = Math::sq(calp0) * _ep2, eps = k2 / (2 * (1 + sqrt(1 + k2)) + k2), // Multiplier = a^2 * e^2 * cos(alpha0) * sin(alpha0). A4 = Math::sq(_a) * calp0 * salp0 * _e2; SinCosNorm(ssig1, csig1); SinCosNorm(ssig2, csig2); real C4a[nC4_]; C4f(eps, C4a); real B41 = CosSeries(ssig1, csig1, C4a, nC4_), B42 = CosSeries(ssig2, csig2, C4a, nC4_); S12 = A4 * (B42 - B41); } else // Avoid problems with indeterminate sig1, sig2 on equator S12 = 0; if (!meridian && omg12 < real(0.75) * Math::pi<real>() && // Long difference too big sbet2 - sbet1 < real(1.75)) { // Lat difference too big // Use tan(Gamma/2) = tan(omg12/2) // * (tan(bet1/2)+tan(bet2/2))/(1+tan(bet1/2)*tan(bet2/2)) // with tan(x/2) = sin(x)/(1+cos(x)) real somg12 = sin(omg12), domg12 = 1 + cos(omg12), dbet1 = 1 + cbet1, dbet2 = 1 + cbet2; alp12 = 2 * atan2( somg12 * ( sbet1 * dbet2 + sbet2 * dbet1 ), domg12 * ( sbet1 * sbet2 + dbet1 * dbet2 ) ); } else { // alp12 = alp2 - alp1, used in atan2 so no need to normalize real salp12 = salp2 * calp1 - calp2 * salp1, calp12 = calp2 * calp1 + salp2 * salp1; // The right thing appears to happen if alp1 = +/-180 and alp2 = 0, viz // salp12 = -0 and alp12 = -180. However this depends on the sign // being attached to 0 correctly. The following ensures the correct // behavior. if (salp12 == 0 && calp12 < 0) { salp12 = tiny_ * calp1; calp12 = -1; } alp12 = atan2(salp12, calp12); } S12 += _c2 * alp12; S12 *= swapp * lonsign * latsign; // Convert -0 to 0 S12 += 0; } // Convert calp, salp to azimuth accounting for lonsign, swapp, latsign. if (swapp < 0) { swap(salp1, salp2); swap(calp1, calp2); if (outmask & GEODESICSCALE) swap(M12, M21); } salp1 *= swapp * lonsign; calp1 *= swapp * latsign; salp2 *= swapp * lonsign; calp2 *= swapp * latsign; if (outmask & AZIMUTH) { // minus signs give range [-180, 180). 0- converts -0 to +0. azi1 = 0 - atan2(-salp1, calp1) / Math::degree<real>(); azi2 = 0 - atan2(-salp2, calp2) / Math::degree<real>(); } // Returned value in [0, 180] return a12; } void GeodesicExact::Lengths(const EllipticFunction& E, real sig12, real ssig1, real csig1, real dn1, real ssig2, real csig2, real dn2, real cbet1, real cbet2, real& s12b, real& m12b, real& m0, bool scalep, real& M12, real& M21) const throw() { // Return m12b = (reduced length)/_b; also calculate s12b = distance/_b, // and m0 = coefficient of secular term in expression for reduced length. // It's OK to have repeated dummy arguments, // e.g., s12b = m0 = M12 = M21 = dummy m0 = - E.k2() * E.D() / (Math::pi<real>() / 2); real J12 = m0 * (sig12 + E.deltaD(ssig2, csig2, dn2) - E.deltaD(ssig1, csig1, dn1)); // Missing a factor of _b. // Add parens around (csig1 * ssig2) and (ssig1 * csig2) to ensure accurate // cancellation in the case of coincident points. m12b = dn2 * (csig1 * ssig2) - dn1 * (ssig1 * csig2) - csig1 * csig2 * J12; // Missing a factor of _b s12b = E.E() / (Math::pi<real>() / 2) * (sig12 + E.deltaE(ssig2, csig2, dn2) - E.deltaE(ssig1, csig1, dn1)); if (scalep) { real csig12 = csig1 * csig2 + ssig1 * ssig2; real t = _ep2 * (cbet1 - cbet2) * (cbet1 + cbet2) / (dn1 + dn2); M12 = csig12 + (t * ssig2 - csig2 * J12) * ssig1 / dn1; M21 = csig12 - (t * ssig1 - csig1 * J12) * ssig2 / dn2; } } Math::real GeodesicExact::Astroid(real x, real y) throw() { // Solve k^4+2*k^3-(x^2+y^2-1)*k^2-2*y^2*k-y^2 = 0 for positive root k. // This solution is adapted from Geocentric::Reverse. real k; real p = Math::sq(x), q = Math::sq(y), r = (p + q - 1) / 6; if ( !(q == 0 && r <= 0) ) { real // Avoid possible division by zero when r = 0 by multiplying equations // for s and t by r^3 and r, resp. S = p * q / 4, // S = r^3 * s r2 = Math::sq(r), r3 = r * r2, // The discrimant of the quadratic equation for T3. This is zero on // the evolute curve p^(1/3)+q^(1/3) = 1 disc = S * (S + 2 * r3); real u = r; if (disc >= 0) { real T3 = S + r3; // Pick the sign on the sqrt to maximize abs(T3). This minimizes loss // of precision due to cancellation. The result is unchanged because // of the way the T is used in definition of u. T3 += T3 < 0 ? -sqrt(disc) : sqrt(disc); // T3 = (r * t)^3 // N.B. cbrt always returns the real root. cbrt(-8) = -2. real T = Math::cbrt(T3); // T = r * t // T can be zero; but then r2 / T -> 0. u += T + (T != 0 ? r2 / T : 0); } else { // T is complex, but the way u is defined the result is real. real ang = atan2(sqrt(-disc), -(S + r3)); // There are three possible cube roots. We choose the root which // avoids cancellation. Note that disc < 0 implies that r < 0. u += 2 * r * cos(ang / 3); } real v = sqrt(Math::sq(u) + q), // guaranteed positive // Avoid loss of accuracy when u < 0. uv = u < 0 ? q / (v - u) : u + v, // u+v, guaranteed positive w = (uv - q) / (2 * v); // positive? // Rearrange expression for k to avoid loss of accuracy due to // subtraction. Division by 0 not possible because uv > 0, w >= 0. k = uv / (sqrt(uv + Math::sq(w)) + w); // guaranteed positive } else { // q == 0 && r <= 0 // y = 0 with |x| <= 1. Handle this case directly. // for y small, positive root is k = abs(y)/sqrt(1-x^2) k = 0; } return k; } Math::real GeodesicExact::InverseStart(EllipticFunction& E, real sbet1, real cbet1, real dn1, real sbet2, real cbet2, real dn2, real lam12, real& salp1, real& calp1, // Only updated if return val >= 0 real& salp2, real& calp2, // Only updated for short lines real& dnm) const throw() { // Return a starting point for Newton's method in salp1 and calp1 (function // value is -1). If Newton's method doesn't need to be used, return also // salp2 and calp2 and function value is sig12. real sig12 = -1, // Return value // bet12 = bet2 - bet1 in [0, pi); bet12a = bet2 + bet1 in (-pi, 0] sbet12 = sbet2 * cbet1 - cbet2 * sbet1, cbet12 = cbet2 * cbet1 + sbet2 * sbet1; #if defined(__GNUC__) && __GNUC__ == 4 && \ (__GNUC_MINOR__ < 6 || defined(__MINGW32__)) // Volatile declaration needed to fix inverse cases // 88.202499451857 0 -88.202499451857 179.981022032992859592 // 89.262080389218 0 -89.262080389218 179.992207982775375662 // 89.333123580033 0 -89.333123580032997687 179.99295812360148422 // which otherwise fail with g++ 4.4.4 x86 -O3 (Linux) // and g++ 4.4.0 (mingw) and g++ 4.6.1 (tdm mingw). real sbet12a; { volatile real xx1 = sbet2 * cbet1; volatile real xx2 = cbet2 * sbet1; sbet12a = xx1 + xx2; } #else real sbet12a = sbet2 * cbet1 + cbet2 * sbet1; #endif bool shortline = cbet12 >= 0 && sbet12 < real(0.5) && cbet2 * lam12 < real(0.5); real omg12 = lam12; if (shortline) { real sbetm2 = Math::sq(sbet1 + sbet2); // sin((bet1+bet2)/2)^2 // = (sbet1 + sbet2)^2 / ((sbet1 + sbet2)^2 + (cbet1 + cbet2)^2) sbetm2 /= sbetm2 + Math::sq(cbet1 + cbet2); dnm = sqrt(1 + _ep2 * sbetm2); omg12 /= _f1 * dnm; } real somg12 = sin(omg12), comg12 = cos(omg12); salp1 = cbet2 * somg12; calp1 = comg12 >= 0 ? sbet12 + cbet2 * sbet1 * Math::sq(somg12) / (1 + comg12) : sbet12a - cbet2 * sbet1 * Math::sq(somg12) / (1 - comg12); real ssig12 = Math::hypot(salp1, calp1), csig12 = sbet1 * sbet2 + cbet1 * cbet2 * comg12; if (shortline && ssig12 < _etol2) { // really short lines salp2 = cbet1 * somg12; calp2 = sbet12 - cbet1 * sbet2 * (comg12 >= 0 ? Math::sq(somg12) / (1 + comg12) : 1 - comg12); SinCosNorm(salp2, calp2); // Set return value sig12 = atan2(ssig12, csig12); } else if (abs(_n) > real(0.1) || // Skip astroid calc if too eccentric csig12 >= 0 || ssig12 >= 6 * abs(_n) * Math::pi<real>() * Math::sq(cbet1)) { // Nothing to do, zeroth order spherical approximation is OK } else { // Scale lam12 and bet2 to x, y coordinate system where antipodal point // is at origin and singular point is at y = 0, x = -1. real y, lamscale, betscale; // Volatile declaration needed to fix inverse case // 56.320923501171 0 -56.320923501171 179.664747671772880215 // which otherwise fails with g++ 4.4.4 x86 -O3 volatile real x; if (_f >= 0) { // In fact f == 0 does not get here // x = dlong, y = dlat { real k2 = Math::sq(sbet1) * _ep2; E.Reset(-k2, -_ep2, 1 + k2, 1 + _ep2); lamscale = _e2/_f1 * cbet1 * 2 * E.H(); } betscale = lamscale * cbet1; x = (lam12 - Math::pi<real>()) / lamscale; y = sbet12a / betscale; } else { // _f < 0 // x = dlat, y = dlong real cbet12a = cbet2 * cbet1 - sbet2 * sbet1, bet12a = atan2(sbet12a, cbet12a); real m12b, m0, dummy; // In the case of lon12 = 180, this repeats a calculation made in // Inverse. Lengths(E, Math::pi<real>() + bet12a, sbet1, -cbet1, dn1, sbet2, cbet2, dn2, cbet1, cbet2, dummy, m12b, m0, false, dummy, dummy); x = -1 + m12b / (cbet1 * cbet2 * m0 * Math::pi<real>()); betscale = x < -real(0.01) ? sbet12a / x : -_f * Math::sq(cbet1) * Math::pi<real>(); lamscale = betscale / cbet1; y = (lam12 - Math::pi<real>()) / lamscale; } if (y > -tol1_ && x > -1 - xthresh_) { // strip near cut // Need real(x) here to cast away the volatility of x for min/max if (_f >= 0) { salp1 = min(real(1), -real(x)); calp1 = - sqrt(1 - Math::sq(salp1)); } else { calp1 = max(real(x > -tol1_ ? 0 : -1), real(x)); salp1 = sqrt(1 - Math::sq(calp1)); } } else { // Estimate alp1, by solving the astroid problem. // // Could estimate alpha1 = theta + pi/2, directly, i.e., // calp1 = y/k; salp1 = -x/(1+k); for _f >= 0 // calp1 = x/(1+k); salp1 = -y/k; for _f < 0 (need to check) // // However, it's better to estimate omg12 from astroid and use // spherical formula to compute alp1. This reduces the mean number of // Newton iterations for astroid cases from 2.24 (min 0, max 6) to 2.12 // (min 0 max 5). The changes in the number of iterations are as // follows: // // change percent // 1 5 // 0 78 // -1 16 // -2 0.6 // -3 0.04 // -4 0.002 // // The histogram of iterations is (m = number of iterations estimating // alp1 directly, n = number of iterations estimating via omg12, total // number of trials = 148605): // // iter m n // 0 148 186 // 1 13046 13845 // 2 93315 102225 // 3 36189 32341 // 4 5396 7 // 5 455 1 // 6 56 0 // // Because omg12 is near pi, estimate work with omg12a = pi - omg12 real k = Astroid(x, y); real omg12a = lamscale * ( _f >= 0 ? -x * k/(1 + k) : -y * (1 + k)/k ); somg12 = sin(omg12a); comg12 = -cos(omg12a); // Update spherical estimate of alp1 using omg12 instead of lam12 salp1 = cbet2 * somg12; calp1 = sbet12a - cbet2 * sbet1 * Math::sq(somg12) / (1 - comg12); } } if (salp1 > 0) // Sanity check on starting guess SinCosNorm(salp1, calp1); else { salp1 = 1; calp1 = 0; } return sig12; } Math::real GeodesicExact::Lambda12(real sbet1, real cbet1, real dn1, real sbet2, real cbet2, real dn2, real salp1, real calp1, real& salp2, real& calp2, real& sig12, real& ssig1, real& csig1, real& ssig2, real& csig2, EllipticFunction& E, real& omg12, bool diffp, real& dlam12) const throw() { if (sbet1 == 0 && calp1 == 0) // Break degeneracy of equatorial line. This case has already been // handled. calp1 = -tiny_; real // sin(alp1) * cos(bet1) = sin(alp0) salp0 = salp1 * cbet1, calp0 = Math::hypot(calp1, salp1 * sbet1); // calp0 > 0 real somg1, comg1, somg2, comg2, cchi1, cchi2, lam12; // tan(bet1) = tan(sig1) * cos(alp1) // tan(omg1) = sin(alp0) * tan(sig1) = tan(omg1)=tan(alp1)*sin(bet1) ssig1 = sbet1; somg1 = salp0 * sbet1; csig1 = comg1 = calp1 * cbet1; // Without normalization we have schi1 = somg1. cchi1 = _f1 * dn1 * comg1; SinCosNorm(ssig1, csig1); // SinCosNorm(somg1, comg1); -- don't need to normalize! // SinCosNorm(schi1, cchi1); -- don't need to normalize! // Enforce symmetries in the case abs(bet2) = -bet1. Need to be careful // about this case, since this can yield singularities in the Newton // iteration. // sin(alp2) * cos(bet2) = sin(alp0) salp2 = cbet2 != cbet1 ? salp0 / cbet2 : salp1; // calp2 = sqrt(1 - sq(salp2)) // = sqrt(sq(calp0) - sq(sbet2)) / cbet2 // and subst for calp0 and rearrange to give (choose positive sqrt // to give alp2 in [0, pi/2]). calp2 = cbet2 != cbet1 || abs(sbet2) != -sbet1 ? sqrt(Math::sq(calp1 * cbet1) + (cbet1 < -sbet1 ? (cbet2 - cbet1) * (cbet1 + cbet2) : (sbet1 - sbet2) * (sbet1 + sbet2))) / cbet2 : abs(calp1); // tan(bet2) = tan(sig2) * cos(alp2) // tan(omg2) = sin(alp0) * tan(sig2). ssig2 = sbet2; somg2 = salp0 * sbet2; csig2 = comg2 = calp2 * cbet2; // Without normalization we have schi2 = somg2. cchi2 = _f1 * dn2 * comg2; SinCosNorm(ssig2, csig2); // SinCosNorm(somg2, comg2); -- don't need to normalize! // SinCosNorm(schi2, cchi2); -- don't need to normalize! // sig12 = sig2 - sig1, limit to [0, pi] sig12 = atan2(max(csig1 * ssig2 - ssig1 * csig2, real(0)), csig1 * csig2 + ssig1 * ssig2); // omg12 = omg2 - omg1, limit to [0, pi] omg12 = atan2(max(comg1 * somg2 - somg1 * comg2, real(0)), comg1 * comg2 + somg1 * somg2); real k2 = Math::sq(calp0) * _ep2; E.Reset(-k2, -_ep2, 1 + k2, 1 + _ep2); real chi12 = atan2(max(cchi1 * somg2 - somg1 * cchi2, real(0)), cchi1 * cchi2 + somg1 * somg2); lam12 = chi12 - _e2/_f1 * salp0 * E.H() / (Math::pi<real>() / 2) * (sig12 + E.deltaH(ssig2, csig2, dn2) - E.deltaH(ssig1, csig1, dn1) ); if (diffp) { if (calp2 == 0) dlam12 = - 2 * _f1 * dn1 / sbet1; else { real dummy; Lengths(E, sig12, ssig1, csig1, dn1, ssig2, csig2, dn2, cbet1, cbet2, dummy, dlam12, dummy, false, dummy, dummy); dlam12 *= _f1 / (calp2 * cbet2); } } return lam12; } void GeodesicExact::C4f(real eps, real c[]) const throw() { // Evaluate C4 coeffs by Horner's method // Elements c[0] thru c[nC4_ - 1] are set for (int j = nC4x_, k = nC4_; k; ) { real t = 0; for (int i = nC4_ - k + 1; i; --i) t = eps * t + _C4x[--j]; c[--k] = t; } real mult = 1; for (int k = 1; k < nC4_; ) { mult *= eps; c[k++] *= mult; } } // Generated by Maxima on 2012-10-19 10:22:27-04:00 // The coefficients C4[l] in the Fourier expansion of I4 void GeodesicExact::C4coeff() throw() { // Include only orders 24, 27, and 30 (using orders 24 and 27 to check for // convergence of the order 30 results). switch (nC4_) { case 24: _C4x[0] = (_n*(_n*(_n*(_n*(_n*(_n*(_n*(_n*(_n*(_n*(_n*(_n*(_n*(_n*(_n*(_n* (_n*(_n*(_n*(_n*(_n*(_n*(real(1999358874607380.L)*_n+ real(2285587345521480.L))+real(2629224603764220.L))+ real(3045433903974000.L))+real(3554456427923940.L))+ real(4183714264446360.L))+real(4970972324960460.L))+ real(5969200033218240.L))+real(7254236151480500.L))+ real(8937218938623976.L))+real(11185401342439324.L))+ real(14258313799153424.L))+real(18573329817318276.L))+ real(24830654835987000.L))+real(34266303673662060.L))+ real(49202897582694240.L))+real(74363470210208340.L))+ real(120397999387956360.L))+real(214996427478493500.L))+ real(447192569155266480.L))+real(1229779565176982820.L))+ real(7378677391061896920.L))-real(25825370868716639220.L))+ real(64563427171791598050.L))/real(96845140757687397075.L); _C4x[1] = (_n*(_n*(_n*(_n*(_n*(_n*(_n*(_n*(_n*(_n*(_n*(_n*(_n*(_n*(_n*(_n* (_n*(_n*(_n*(_n*(_n*(real(14352196832160.L)*_n+real(18143010491760.L))+ real(23203305935040.L))+real(30058828143120.L))+real(39500055997920.L))+ real(52742411935920.L))+real(71702102501120.L))+real(99486667220304.L))+ real(141299904167968.L))+real(206182513224688.L))+ real(310525890362688.L))+real(485577250125968.L))+ real(794580954751584.L))+real(1375236267839280.L))+ real(2555994679620480.L))+real(5218489137558480.L))+ real(12140974728197280.L))+real(34399428396558960.L))+ real(137597713586235840.L))+real(1341577707465799440.L))- real(9838236521415862560.L))+real(14757354782123793840.L))- real(6456342717179159805.L))/real(32281713585895799025.L); _C4x[2] = (_n*(_n*(_n*(_n*(_n*(_n*(_n*(_n*(_n*(_n*(_n*(_n*(_n*(_n*(_n*(_n* (_n*(_n*(_n*(_n*(real(112031767409760.L)*_n+real(143707902522240.L))+ real(186817232975520.L))+real(246503156195520.L))+ real(330747808183520.L))+real(452274800391680.L))+ real(631991683893024.L))+real(905472855280448.L))+ real(1335746999551328.L))+real(2039925298739328.L))+ real(3248344362911648.L))+real(5446614749664704.L))+ real(9751675353769440.L))+real(19040308193114880.L))+ real(41960912657102880.L))+real(111185768563490880.L))+ real(408746149182641760.L))+real(3577540553242131840.L))- real(22910019312108267360.L))+real(30409094702558120640.L))- real(9838236521415862560.L))-real(1844669347765474230.L))/ real(96845140757687397075.L); _C4x[3] = (_n*(_n*(_n*(_n*(_n*(_n*(_n*(_n*(_n*(_n*(_n*(_n*(_n*(_n*(_n*(_n* (_n*(_n*(_n*(real(32480160924480.L)*_n+real(42473724825840.L))+ real(56434964292640.L))+real(76351584942160.L))+ real(105450461374720.L))+real(149151421424048.L))+ real(216924643757536.L))+real(326106771851536.L))+ real(510258085727936.L))+real(838941256641136.L))+ real(1469287881877408.L))+real(2798320262169040.L))+ real(5995739072484480.L))+real(15388225732922160.L))+ real(54558315006660960.L))+real(458055546543653520.L))- real(2783173921025795520.L))+real(3297430922013008880.L))- real(68798856793117920.L))-real(1469347012938732720.L))+ real(483127686319528965.L))/real(13835020108241056725.L); _C4x[4] = (_n*(_n*(_n*(_n*(_n*(_n*(_n*(_n*(_n*(_n*(_n*(_n*(_n*(_n*(_n*(_n* (_n*(_n*(real(61593373053120.L)*_n+real(82664196067968.L))+ real(113184908345408.L))+real(158600828072960.L))+ real(228343862806464.L))+real(339524138046848.L))+ real(524951894472512.L))+real(851973503469312.L))+ real(1471189694291648.L))+real(2759208118818944.L))+ real(5813897943174720.L))+real(14652252730710528.L))+ real(50920388417623488.L))+real(417865440759569280.L))- real(2463552872040872640.L))+real(2735888019452816640.L))+ real(225475244952235200.L))-real(1375977135862358400.L))+ real(334165875852287040.L))+real(47913489552349980.L))/ real(13835020108241056725.L); _C4x[5] = (_n*(_n*(_n*(_n*(_n*(_n*(_n*(_n*(_n*(_n*(_n*(_n*(_n*(_n*(_n*(_n* (_n*(real(116901815052000.L)*_n+real(162665178856240.L))+ real(232452294471424.L))+real(342889966787280.L))+ real(525669616244512.L))+real(845442310622320.L))+ real(1445880195597120.L))+real(2683983711876112.L))+ real(5593692396246880.L))+real(13932464215913904.L))+ real(47800768353056640.L))+real(386485049557054800.L))- real(2233470221772257376.L))+real(2379929378403817200.L))+ real(326011035683974080.L))-real(1258599165902406000.L))+ real(378682783189010400.L))-real(142511917642887120.L))+ real(89377086280345155.L))/real(13835020108241056725.L); _C4x[6] = (_n*(_n*(_n*(_n*(_n*(_n*(_n*(_n*(_n*(_n*(_n*(_n*(_n*(_n*(_n*(_n* (real(1629228407930528.L)*_n+real(2388939356529152.L))+ real(3639389570725216.L))+real(5814633717932480.L))+ real(9875158781915168.L))+real(18197230911760768.L))+ real(37631963274426080.L))+real(92958596676550976.L))+ real(316045988259680672.L))+real(2528358390442176768.L))- real(14403436411319236512.L))+real(14914788310942924992.L))+ real(2554348100439188256.L))-real(8119802402735802240.L))+ real(2646945490303642080.L))-real(1252011393900765120.L))+ real(530155896464614560.L))+real(107498213739246750.L))/ real(96845140757687397075.L); _C4x[7] = (_n*(_n*(_n*(_n*(_n*(_n*(_n*(_n*(_n*(_n*(_n*(_n*(_n*(_n*(_n* (real(3578093269775104.L)*_n+real(5687997784397712.L))+ real(9609462802875040.L))+real(17610495752958640.L))+ real(36208089438373440.L))+real(88888351651007440.L))+ real(300146061507531232.L))+real(2381912272287266544.L))- real(13423345505071318656.L))+real(13611289619044517904.L))+ real(2653631568740192544.L))-real(7554826635271531728.L))+ real(2567126221667232960.L))-real(1319935100341621680.L))+ real(712057517830938720.L))-real(318327837391067280.L))+ real(219675761488319535.L))/real(96845140757687397075.L); _C4x[8] = (_n*(_n*(_n*(_n*(_n*(_n*(_n*(_n*(_n*(_n*(_n*(_n*(_n*(_n* (real(9344882134297728.L)*_n+real(17052302334045440.L))+ real(34902155158209920.L))+real(85267266561630720.L))+ real(286371850542771840.L))+real(2258215493643556608.L))- real(12619091028769110144.L))+real(12592255538342194176.L))+ real(2674310239814054016.L))-real(7087386899159449344.L))+ real(2469789916329642368.L))-real(1324326286853409280.L))+ real(781134200132711040.L))-real(449188282392433920.L))+ real(207035569049258880.L))+real(46274153678962440.L))/ real(96845140757687397075.L); _C4x[9] = (_n*(_n*(_n*(_n*(_n*(_n*(_n*(_n*(_n*(_n*(_n*(_n*(_n* (real(33710695719142240.L)*_n+real(82033363026426448.L))+ real(274307634242074048.L))+real(2151953414651649840.L))- real(11943746423313440736.L))+real(11768554506156380688.L))+ real(2656740683050806912.L))-real(6694324846705525008.L))+ real(2372534111370988768.L))-real(1304152339674541616.L))+ real(804586292246013760.L))-real(508295041968638288.L))+ real(303435464042162592.L))-real(142566159766005360.L))+ real(101847069252273345.L))/real(96845140757687397075.L); _C4x[10] = (_n*(_n*(_n*(_n*(_n*(_n*(_n*(_n*(_n*(_n*(_n*(_n* (real(37662210790798880.L)*_n+real(294198823886647680.L))- real(1623746230123937568.L))+real(1583642912939883840.L))+ real(374294071218757536.L))-real(908376065974705920.L))+ real(325845462025050720.L))-real(182042393354443584.L))+ real(115324345382009120.L))-real(76410130129858432.L))+ real(50299418752812000.L))-real(30764544658330560.L))+ real(14642991880422048.L))+real(3412871389794750.L))/ real(13835020108241056725.L); _C4x[11] = (_n*(_n*(_n*(_n*(_n*(_n*(_n*(_n*(_n*(_n* ((real(1501075919503116528.L)-real(1552143373356932928.L)*_n)*_n+ real(367714452841178784.L))-real(866854101764130480.L))+ real(313774899291644032.L))-real(177299477003547728.L))+ real(114271319608011360.L))-real(77874555660641264.L))+ real(53885331728867392.L))-real(36449668807965072.L))+ real(22671434367950368.L))-real(10890804038539568.L))+ real(7910659659501261.L))/real(13835020108241056725.L); _C4x[12] = (_n*(_n*(_n*(_n*(_n*(_n*(_n*(_n*(_n*(_n* (real(360538238351793216.L)*_n-real(830474209202681472.L))+ real(302723808493726400.L))-real(172487985807946240.L))+ real(112510525811343680.L))-real(78092355283414400.L))+ real(55660125309751232.L))-real(39649081749780736.L))+ real(27338126785513024.L))-real(17212736021193856.L))+ real(8325051251152064.L))+real(1983486709822292.L))/ real(13835020108241056725.L); _C4x[13] = (_n*(_n*(_n*(_n*(_n*(_n*(_n*(_n*(_n* (real(2048343300695481504.L)*_n-real(1174575214532756400.L))+ real(772892184384100480.L))-real(543333033447540560.L))+ real(394812426258146400.L))-real(290054001262275824.L))+ real(210932617298009152.L))-real(147501043346970768.L))+ real(93725243308252192.L))-real(45566335422656048.L))+ real(33407285962107981.L))/real(96845140757687397075.L); _C4x[14] = (_n*(_n*(_n*(_n*(_n*(_n*(_n*(_n*(real(757239210080028960.L)*_n- real(537300905287869184.L))+real(395714242456307936.L))- real(296644998767853120.L))+real(222719570867903648.L))- real(164471843537244544.L))+real(116250524440194144.L))- real(74392957708678336.L))+real(36314075371167776.L))+ real(8765349343650438.L))/real(96845140757687397075.L); _C4x[15] = (_n*(_n*(_n*(_n*(_n*(_n*(_n*(real(394009676853677440.L)*_n- real(299555477286704240.L))+real(229664829361176608.L))- real(175256533651561040.L))+real(130955550851978944.L))- real(93338256894526000.L))+real(60065708572935520.L))- real(29414891274803216.L))+real(21690166092926695.L))/ real(96845140757687397075.L); _C4x[16] = (_n*(_n*(_n*(_n*(_n*(_n*(real(233488686343708928.L)*_n- real(182065233526783488.L))+real(140688277401572096.L))- real(106104539418465280.L))+real(76131914426443008.L))- real(49214116938230272.L))+real(24163608542877440.L))+ real(5881417679788560.L))/real(96845140757687397075.L); _C4x[17] = (_n*(_n*(_n*(_n*(_n*(real(21019513180253472.L)*_n- real(16404720495540944.L))+real(12464612278064320.L))- real(8992138901419440.L))+real(5834254120326240.L))- real(2870694135369360.L))+real(2124887947607295.L))/ real(13835020108241056725.L); _C4x[18] = (_n*(_n*(_n*(_n*(real(13580299535160224.L)*_n- real(10381521524479360.L))+real(7522850187332960.L))- real(4895874088539840.L))+real(2413265325968160.L))+ real(590734532916630.L))/real(13835020108241056725.L); _C4x[19] = (_n*(_n*(_n*(real(4472222311616.L)*_n-real(3252828257712.L))+ real(2122366467168.L))-real(1047720937104.L))+real(777582423783.L))/ real(7076736628256295.L); _C4x[20] = (_n*(_n*(real(223285780800.L)*_n-real(146003016320.L))+ real(72167144896.L))+real(17737080900.L))/real(569392602273495.L); _C4x[21] = (_n*(real(19420000.L)*_n-real(9609488.L))+real(7145551.L))/ real(87882790905.L); _C4x[22] = (real(5189536.L)*_n+real(1279278.L))/real(54629842995.L); _C4x[23] = real(2113.L)/real(34165005.L); _C4x[24] = (_n*(_n*(_n*(_n*(_n*(_n*(_n*(_n*(_n*(_n*(_n*(_n*(_n*(_n*(_n* (_n*(_n*(_n*(_n*(_n*((-real(14352196832160.L)*_n- real(18143010491760.L))*_n-real(23203305935040.L))- real(30058828143120.L))-real(39500055997920.L))-real(52742411935920.L))- real(71702102501120.L))-real(99486667220304.L))- real(141299904167968.L))-real(206182513224688.L))- real(310525890362688.L))-real(485577250125968.L))- real(794580954751584.L))-real(1375236267839280.L))- real(2555994679620480.L))-real(5218489137558480.L))- real(12140974728197280.L))-real(34399428396558960.L))- real(137597713586235840.L))-real(1341577707465799440.L))+ real(9838236521415862560.L))-real(14757354782123793840.L))+ real(6456342717179159805.L))/real(290535422273062191225.L); _C4x[25] = (_n*(_n*(_n*(_n*(_n*(_n*(_n*(_n*(_n*(_n*(_n*(_n*(_n*(_n*(_n* (_n*(_n*(_n*(_n*((-real(37872873213120.L)*_n-real(48650645326080.L))*_n- real(63349788344640.L))-real(83751522099840.L))- real(112631492155840.L))-real(154435297694720.L))- real(216509174726208.L))-real(311436523472256.L))- real(461690986550976.L))-real(709436759006976.L))- real(1138594931329856.L))-real(1928726420080768.L))- real(3500601409045440.L))-real(6964159416936960.L))- real(15761967190992960.L))-real(43451909553548160.L))- real(169973646194761920.L))-real(1651172563034830080.L))+ real(12796587363519933120.L))-real(25042783872694922880.L))+ real(19676473042831725120.L))-real(5534008043296422690.L))/ real(290535422273062191225.L); _C4x[26] = (_n*(_n*(_n*(_n*(_n*(_n*(_n*(_n*(_n*(_n*(_n*(_n*(_n*(_n*(_n* (_n*(_n*(_n*((-real(11276216410560.L)*_n-real(14808964439760.L))*_n- real(19775083935840.L))-real(26911076211952.L))-real(37426002516736.L))- real(53377042346256.L))-real(78413480238496.L))- real(119335663136560.L))-real(189587691508800.L))- real(317745076104016.L))-real(570337600574176.L))- real(1121753565657456.L))-real(2509425832455552.L))- real(6835169002204560.L))-real(26381516514654240.L))- real(251476405115755440.L))+real(1874335241372170560.L))- real(3287602513899706320.L))+real(1778941868507763360.L))+ real(319423263682333200.L))-real(395286288806887335.L))/ real(41505060324723170175.L); _C4x[27] = (_n*(_n*(_n*(_n*(_n*(_n*(_n*(_n*(_n*(_n*(_n*(_n*(_n*(_n*(_n* (_n*(_n*((-real(22293547029120.L)*_n-real(30187829221632.L))*_n- real(41765992461184.L))-real(59246321780736.L))-real(86549704883328.L))- real(130956016858880.L))-real(206803820912000.L))- real(344451241367040.L))-real(614280013891200.L))- real(1199884405036288.L))-real(2663730758641536.L))- real(7188536589640704.L))-real(27392007578988672.L))- real(255694722422158080.L))+real(1829483620446449280.L))- real(2903123099919413760.L))+real(950464878721729920.L))+ real(1179408973596307200.L))-real(904213546423835520.L))+ real(143740468657049940.L))/real(41505060324723170175.L); _C4x[28] = (_n*(_n*(_n*(_n*(_n*(_n*(_n*(_n*(_n*(_n*(_n*(_n*(_n*(_n*(_n* (_n*((-real(314227949431392.L)*_n-real(444118245821936.L))*_n- real(646350803626752.L))-real(974173792477200.L))- real(1532163562752928.L))-real(2541011617045552.L))- real(4510409446842432.L))-real(8763719809996368.L))- real(19331398316031200.L))-real(51734190824153712.L))- real(194771904021722496.L))-real(1783527709272757392.L))+ real(12327423427055247840.L))-real(18094891139289678000.L))+ real(3507250699552568640.L))+real(9095826566764430640.L))- real(5038504512201871200.L))+real(240795998775912720.L))+ real(32249464121774025.L))/real(290535422273062191225.L); _C4x[29] = (_n*(_n*(_n*(_n*(_n*(_n*(_n*(_n*(_n*(_n*(_n*(_n*(_n*(_n*(_n*((- real(676805490635072.L)*_n-real(1017107280444416.L))*_n- real(1594713745528512.L))-real(2635732053411968.L))- real(4660438333855808.L))-real(9013600870649088.L))- real(19767938645110208.L))-real(52495817642344832.L))- real(195480281809194816.L))-real(1760179895295155712.L))+ real(11824626509324258112.L))-real(16334739668315101824.L))+ real(1710845777953679808.L))+real(8831369095501451520.L))- real(4080645506014096320.L))+real(706306529801792640.L))- real(930808062495124800.L))+real(322494641217740250.L))/ real(290535422273062191225.L); _C4x[30] = (_n*(_n*(_n*(_n*(_n*(_n*(_n*(_n*(_n*(_n*(_n*(_n*(_n*(_n*((- real(234626124936960.L)*_n-real(386642889659472.L))*_n- real(681291516288544.L))-real(1312131284359408.L))- real(2862343556835648.L))-real(7547594230014864.L))- real(27829430493060192.L))-real(246968747677612080.L))+ real(1620521417412248704.L))-real(2133351424824285904.L))+ real(88481749384377696.L))+real(1191321558116675728.L))- real(497828914064756160.L))+real(139660898732647920.L))- real(153511823317682400.L))+real(26761872865788240.L))+ real(6305357410923885.L))/real(41505060324723170175.L); _C4x[31] = (_n*(_n*(_n*(_n*(_n*(_n*(_n*(_n*(_n*(_n*(_n*(_n*(_n*((- real(4847557372167936.L)*_n-real(9299738212233728.L))*_n- real(20186836594754816.L))-real(52886353091367936.L))- real(193292214083564288.L))-real(1693873158585284096.L))+ real(10898220796744732416.L))-real(13798321323280807936.L))- real(78275445405081344.L))+real(7837137740291016192.L))- real(3094585124345421056.L))+real(1114048185423143936.L))- real(1060048784781036288.L))+real(320499506783715840.L))- real(294791386382895360.L))+real(138822461036887320.L))/ real(290535422273062191225.L); _C4x[32] = (_n*(_n*(_n*(_n*(_n*(_n*(_n*(_n*(_n*(_n*(_n*(_n*((- real(20252388370301728.L)*_n-real(52745822321880688.L))*_n- real(191268063112166208.L))-real(1657850837456732688.L))+ real(10490563891587064992.L))-real(12861854000462901168.L))- real(542049980036777856.L))+real(7379432078766515376.L))- real(2820825068533490592.L))+real(1175289058330498832.L))- real(1013781619318412224.L))+real(405766933644837744.L))- real(400129854074239968.L))+real(106421061090067920.L))+ real(26045852034778485.L))/real(290535422273062191225.L); _C4x[33] = (_n*(_n*(_n*(_n*(_n*(_n*(_n*(_n*(_n*(_n*(_n*((- real(26991371956800576.L)*_n-real(231714588162759936.L))*_n+ real(1445534059265992256.L))-real(1725175886601230720.L))- real(122816338489832256.L))+real(996460010778919424.L))- real(373834302508781760.L))+real(170833322112089472.L))- real(137893474113071680.L))+real(65398981000896768.L))- real(62562454225008576.L))+real(24803908618368128.L))- real(18609017165394240.L))+real(10238614169384250.L))/ real(41505060324723170175.L); _C4x[34] = (_n*(_n*(_n*(_n*(_n*(_n*(_n*(_n*(_n*(_n*(_n* (real(1397065280037743040.L)*_n-real(1629617303203516880.L))- real(154602841897228768.L))+real(945831163359565584.L))- real(351046497363368320.L))+real(170621111324559856.L))- real(131595528641218848.L))+real(69747367167890128.L))- real(64126777100688576.L))+real(31033916201205168.L))- real(27584611975678048.L))+real(9027432761923216.L))+ real(2232336230654433.L))/real(41505060324723170175.L); _C4x[35] = (_n*(_n*(_n*(_n*(_n*(_n*(_n*(_n*(_n* ((real(6309561957305042688.L)-real(1240589737259444352.L)*_n)*_n- real(2327800175547030912.L))+real(1180980622816562176.L))- real(882415277427055232.L))+real(504866510659064064.L))- real(448407655736528768.L))+real(245693318054356480.L))- real(224849316251462784.L))+real(103838551260338944.L))- real(69226282290225536.L))+real(41653220906268132.L))/ real(290535422273062191225.L); _C4x[36] = (_n*(_n*(_n*(_n*(_n*(_n*(_n*(_n*((real(1161351729795236112.L)- real(2219511793934405088.L)*_n)*_n-real(848452198446344576.L))+ real(512670721913356272.L))-real(442910285238138144.L))+ real(264138399004226768.L))-real(241047580754142400.L))+ real(131028203398605744.L))-real(108394165078944864.L))+ real(39960256179269776.L))+real(9923358345356673.L))/ real(290535422273062191225.L); _C4x[37] = (_n*(_n*(_n*(_n*(_n*(_n*(_n*((real(73543186501015040.L)- real(116928193770523584.L)*_n)*_n-real(62178132929994816.L))+ real(39406949879342208.L))-real(35564764459944128.L))+ real(21367914697321216.L))-real(18783130966863168.L))+ real(9532087098753408.L))-real(5903541051061696.L))+ real(3756578290135902.L))/real(41505060324723170175.L); _C4x[38] = (_n*(_n*(_n*(_n*(_n*(_n*((real(282962846327606480.L)- real(426748832985298048.L)*_n)*_n-real(252224625488402784.L))+ real(162322457781691760.L))-real(145413778689772096.L))+ real(85282246727300112.L))-real(67164218836484896.L))+ real(26689586825247920.L))+real(6642057399330675.L))/ real(290535422273062191225.L); _C4x[39] = (_n*(_n*(_n*(_n*(_n*((real(171060891416497152.L)- real(252813007696723456.L)*_n)*_n-real(153870471779809792.L))+ real(98423709472671744.L))-real(83861959821448704.L))+ real(45293147485078528.L))-real(26715359837770240.L))+ real(17644253039365680.L))/real(290535422273062191225.L); _C4x[40] = (_n*(_n*(_n*(_n*((real(15405921597572848.L)- real(22703107707125856.L)*_n)*_n-real(13556613226824768.L))+ real(8376749793922704.L))-real(6372917643153440.L))+ real(2663272940347440.L))+real(663613230544875.L))/ real(41505060324723170175.L); _C4x[41] = (_n*(_n*(_n*((real(9770829888267520.L)- real(14611840804674368.L)*_n)*_n-real(8131320889364160.L))+ real(4585714449598080.L))-real(2614574103174720.L))+ real(1772203598749890.L))/real(41505060324723170175.L); _C4x[42] = (_n*(_n*((real(365612970361968.L)-real(570013933313984.L)*_n)* _n-real(271274216878560.L))+real(117458505580752.L))+ real(29290376930661.L))/real(2526394976287497315.L); _C4x[43] = (_n*((real(138477414656.L)-real(237999188352.L)*_n)*_n- real(77042430080.L))+real(53211242700.L))/real(1708177806820485.L); _C4x[44] = ((real(571443856.L)-real(1286021216.L)*_n)*_n+ real(142575393.L))/real(16459191268065.L); _C4x[45] = (real(3837834.L)-real(5479232.L)*_n)/real(163889528985.L); _C4x[46] = real(3401.L)/real(512475075.L); _C4x[47] = (_n*(_n*(_n*(_n*(_n*(_n*(_n*(_n*(_n*(_n*(_n*(_n*(_n*(_n*(_n* (_n*(_n*(_n*(_n*(_n*(real(317370445920.L)*_n+real(448806691200.L))+ real(646426411680.L))+real(950282020800.L))+real(1429333656800.L))+ real(2206218538496.L))+real(3507168057120.L))+real(5767343027264.L))+ real(9865192020320.L))+real(17676995656320.L))+real(33488086215584.L))+ real(67912902115520.L))+real(150025774673376.L))+ real(370434011539200.L))+real(1064997783175200.L))+ real(3833992019430720.L))+real(20234957880328800.L))+ real(275195427172471680.L))-real(3095948555690306400.L))+ real(8943851383105329600.L))-real(9838236521415862560.L))+ real(3689338695530948460.L))/real(484225703788436985375.L); _C4x[48] = (_n*(_n*(_n*(_n*(_n*(_n*(_n*(_n*(_n*(_n*(_n*(_n*(_n*(_n*(_n* (_n*(_n*(_n*(_n*(real(273006835200.L)*_n+real(395945493120.L))+ real(586817304320.L))+real(891220401024.L))+real(1391712466944.L))+ real(2243902395520.L))+real(3755043092736.L))+real(6565741243776.L))+ real(12100962105856.L))+real(23789480601216.L))+real(50729386801920.L))+ real(120302855176064.L))+real(330215461714944.L))+ real(1127177777969280.L))+real(5598845488692480.L))+ real(71202708932284800.L))-real(749271583225889280.L))+ real(2083622520020142720.L))-real(2594699741911875840.L))+ real(1533231665675199360.L))-real(351365590050566520.L))/ real(69175100541205283625.L); _C4x[49] = (_n*(_n*(_n*(_n*(_n*(_n*(_n*(_n*(_n*(_n*(_n*(_n*(_n*(_n*(_n* (_n*(_n*(_n*(real(7644783328320.L)*_n+real(11463151921536.L))+ real(17653672535744.L))+real(28034955275264.L))+real(46140945264960.L))+ real(79214129622656.L))+real(143068810189760.L))+ real(275002958065920.L))+real(571859737257536.L))+ real(1318302812812160.L))+real(3504178013294784.L))+ real(11527906439099904.L))+real(54835346728147776.L))+ real(661558101207857280.L))-real(6494356481802369600.L))+ real(16206710265246923520.L))-real(16001804691764015040.L))+ real(3577540553242131840.L))+real(3990333694000839360.L))- real(2012366561198699160.L))/real(484225703788436985375.L); _C4x[50] = (_n*(_n*(_n*(_n*(_n*(_n*(_n*(_n*(_n*(_n*(_n*(_n*(_n*(_n*(_n* (_n*(_n*(real(26475115861248.L)*_n+real(41539614960256.L))+ real(67477113432064.L))+real(114199555532160.L))+ real(203050973821696.L))+real(383622693306496.L))+ real(782605912198656.L))+real(1765867311381376.L))+ real(4580992737583360.L))+real(14651295594681984.L))+ real(67377092736070656.L))+real(778778239819321728.L))- real(7199681361473583360.L))+real(16239641848872758400.L))- real(12428950128767854080.L))-real(2389855025445148800.L))+ real(8126359084740046080.L))-real(3577540553242131840.L))+ real(361193998163869080.L))/real(484225703788436985375.L); _C4x[51] = (_n*(_n*(_n*(_n*(_n*(_n*(_n*(_n*(_n*(_n*(_n*(_n*(_n*(_n*(_n* (_n*(real(89155245351584.L)*_n+real(149153978591744.L))+ real(261880564871520.L))+real(487975648687296.L))+ real(980374150402080.L))+real(2174528832954240.L))+ real(5532123220926176.L))+real(17294742643411520.L))+ real(77366539476712864.L))+real(863002470868620544.L))- real(7585193591402132384.L))+real(15693208464551092160.L))- real(9404921336417883360.L))-real(5330137948636394880.L))+ real(7799830764418529760.L))-real(1945537950304455360.L))- real(117362755705907040.L))-real(77398713892257660.L))/ real(484225703788436985375.L); _C4x[52] = (_n*(_n*(_n*(_n*(_n*(_n*(_n*(_n*(_n*(_n*(_n*(_n*(_n*(_n*(_n* (real(45457260285952.L)*_n+real(83737812023040.L))+ real(166114946518528.L))+real(363250972247296.L))+ real(909240139877376.L))+real(2788853668680448.L))+ real(12189279787747840.L))+real(131948929260364032.L))- real(1111345019796781056.L))+real(2137393780481191680.L))- real(1013996939409947136.L))-real(946776414349689600.L))+ real(953399774476010496.L))-real(157582628508775680.L))+ real(79357549100597760.L))-real(114167762356381440.L))+ real(25149161936980080.L))/real(69175100541205283625.L); _C4x[53] = (_n*(_n*(_n*(_n*(_n*(_n*(_n*(_n*(_n*(_n*(_n*(_n*(_n*(_n* (real(189942318453120.L)*_n+real(410351442545408.L))+ real(1012980928078976.L))+real(3056778654199296.L))+ real(13096988628924288.L))+real(138181348526526720.L))- real(1122379551011288448.L))+real(2028828416671970304.L))- real(767178257387676288.L))-real(1016842863895980288.L))+ real(803459266534551680.L))-real(116643672730650112.L))+ real(140636860055192448.L))-real(111923990629344000.L))+ real(4746847262152320.L))+real(1110640545311280.L))/ real(69175100541205283625.L); _C4x[54] = (_n*(_n*(_n*(_n*(_n*(_n*(_n*(_n*(_n*(_n*(_n*(_n*(_n* (real(7723646961783296.L)*_n+real(22978281808751360.L))+ real(96762881664332800.L))+real(998464281242844416.L))- real(7861085196794636800.L))+real(13474627907417558784.L))- real(4069958123809507328.L))-real(7215931220612210432.L))+ real(4792611664543980032.L))-real(761042021420289280.L))+ real(1171179839815236608.L))-real(655357035854691072.L))+ real(180682893468360192.L))-real(278195942665939200.L))+ real(89992312678304400.L))/real(484225703788436985375.L); _C4x[55] = (_n*(_n*(_n*(_n*(_n*(_n*(_n*(_n*(_n*(_n*(_n*(_n* (real(14405141768265248.L)*_n+real(145779293550749568.L))- real(1117102949679865632.L))+real(1828848446054729280.L))- real(439926848739167328.L))-real(1017771749695568640.L))+ real(593959280462034528.L))-real(112253626276183104.L))+ real(174438761801173280.L))-real(79460142388452736.L))+ real(44691887225228256.L))-real(49229092559224512.L))+ real(6235198201372320.L))+real(1707469271938500.L))/ real(69175100541205283625.L); _C4x[56] = (_n*(_n*(_n*(_n*(_n*(_n*(_n*(_n*(_n*(_n* ((real(12188663518101012096.L)-real(7749529107656271360.L)*_n)*_n- real(2314483605629072640.L))-real(6944389649078990976.L))+ real(3673561422166408192.L))-real(830336738803978112.L))+ real(1204673222855945472.L))-real(496615277157238400.L))+ real(402217782648790528.L))-real(342841473955274112.L))+ real(102042733322129152.L))-real(125663564514481280.L))+ real(51126839230125960.L))/real(484225703788436985375.L); _C4x[57] = (_n*(_n*(_n*(_n*(_n*(_n*(_n*(_n*(_n*((- real(1715470547628895552.L)*_n-real(6727179272983684480.L))*_n+ real(3300033497372594752.L))-real(872680083478257152.L))+ real(1159736499501920704.L))-real(464678016017634944.L))+ real(454556055863112000.L))-real(324768900924362496.L))+ real(155830643201675456.L))-real(176199306882910080.L))+ real(34298996071878720.L))+real(9223035149802040.L))/ real(484225703788436985375.L); _C4x[58] = (_n*(_n*(_n*(_n*(_n*(_n*(_n*(_n*(_n* (real(3007114594707828480.L)*_n-real(906082597706305152.L))+ real(1105003357916695552.L))-real(449113673374669184.L))+ real(481005369829173504.L))-real(306747238116099200.L))+ real(197728999714817536.L))-real(193306485202325376.L))+ real(66552336586597120.L))-real(66923361204828800.L))+ real(31588680499089000.L))/real(484225703788436985375.L); _C4x[59] = (_n*(_n*(_n*(_n*(_n*(_n*(_n*(_n*(real(149903898094015968.L)*_n- real(63199387988859136.L))+real(70121541761931296.L))- real(41821199445902016.L))+real(32494611518933600.L))- real(28082826645933184.L))+real(13534411038166176.L))- real(14448864464082496.L))+real(3591867311832800.L))+ real(949287373306860.L))/real(69175100541205283625.L); _C4x[60] = (_n*(_n*(_n*(_n*(_n*(_n*(_n*(real(70080677533798400.L)*_n- real(40403373734660608.L))+real(35306683625667584.L))- real(27815314208570880.L))+real(16801954707449856.L))- real(16857385363206656.L))+real(6576235280520192.L))- real(5690097165903360.L))+real(2972595592208480.L))/ real(69175100541205283625.L); _C4x[61] = (_n*(_n*(_n*(_n*(_n*(_n*(real(259248276999003392.L)*_n- real(191355050237148672.L))+real(135196316193908480.L))- real(125874310826349568.L))+real(63496051286798592.L))- real(63243207899802112.L))+real(18410296043928320.L))+ real(4805639607595680.L))/real(484225703788436985375.L); _C4x[62] = (_n*(_n*(_n*(_n*(_n*(real(21165482601397248.L)*_n- real(18455065204743680.L))+real(11108412154980352.L))- real(10988575908254208.L))+real(4725632718443520.L))- real(3665098842785280.L))+real(2057863819620960.L))/ real(69175100541205283625.L); _C4x[63] = (_n*(_n*(_n*(_n*(real(89112323189788000.L)*_n- real(84868458671222912.L))+real(45057962898080160.L))- real(42170268387240000.L))+real(13691762960410080.L))+ real(3542556815251020.L))/real(484225703788436985375.L); _C4x[64] = (_n*(_n*(_n*(real(476846773530112.L)*_n- real(459452602159488.L))+real(212997480208128.L))- real(152371943821440.L))+real(90201719611080.L))/ real(4210658293812495525.L); _C4x[65] = (_n*(_n*(real(76425666259392.L)*_n-real(67918143488384.L))+ real(23864233771840.L))+real(6135010589400.L))/ real(1113162537444682725.L); _C4x[66] = (_n*(real(1053643008.L)*_n-real(709188480.L))+ real(436906360.L))/real(27431985446775.L); _C4x[67] = (real(61416608.L)*_n+real(15713412.L))/real(3707025060375.L); _C4x[68] = real(10384.L)/real(854125125.L); _C4x[69] = (_n*(_n*(_n*(_n*(_n*(_n*(_n*(_n*(_n*(_n*(_n*(_n*(_n*(_n*(_n* (_n*(_n*(_n*((-real(16545868800.L)*_n-real(26558972160.L))*_n- real(43799006720.L))-real(74458311424.L))-real(131016159232.L))- real(239806362880.L))-real(459418505728.L))-real(928488660736.L))- real(1999821730816.L))-real(4653431335168.L))-real(11922014164480.L))- real(34573841076992.L))-real(118538883692544.L))- real(518607616154880.L))-real(3407992906160640.L))- real(59639875857811200.L))+real(906526113038730240.L))- real(3852735980414603520.L))+real(7705471960829207040.L))- real(7155081106484263680.L))+real(2459559130353965640.L))/ real(677915985303811779525.L); _C4x[70] = (_n*(_n*(_n*(_n*(_n*(_n*(_n*(_n*(_n*(_n*(_n*(_n*(_n*(_n*(_n* (_n*(_n*((-real(58538142720.L)*_n-real(97662466048.L))*_n- real(168340530176.L))-real(301206585344.L))-real(562729180160.L))- real(1105930520576.L))-real(2308674507776.L))-real(5186350862336.L))- real(12768092589056.L))-real(35381461391360.L))- real(115132593931264.L))-real(474155534770176.L))- real(2904202650467328.L))-real(46822859058554880.L))+ real(647518652170521600.L))-real(2481018835684945920.L))+ real(4532630565193651200.L))-real(4403126834759546880.L))+ real(2201563417379773440.L))-real(447192569155266480.L))/ real(225971995101270593175.L); _C4x[71] = (_n*(_n*(_n*(_n*(_n*(_n*(_n*(_n*(_n*(_n*(_n*(_n*(_n*(_n*(_n* (_n*((-real(1182937339392.L)*_n-real(2077423296256.L))*_n- real(3802400960512.L))-real(7305888334080.L))-real(14874238192128.L))- real(32495024308992.L))-real(77533332022272.L))- real(207382612288768.L))-real(648129037319680.L))- real(2547646522697472.L))-real(14773759952623616.L))- real(223035848787675392.L))+real(2840932521296432640.L))- real(9742784937492499200.L))+real(14947456886420567040.L))- real(9871251452694293760.L))-real(323759326085260800.L))+ real(3852735980414603520.L))-real(1461975706853755800.L))/ real(677915985303811779525.L); _C4x[72] = (_n*(_n*(_n*(_n*(_n*(_n*(_n*(_n*(_n*(_n*(_n*(_n*(_n*(_n*(_n*((- real(6792109998080.L)*_n-real(12807852130304.L))*_n- real(25543125909504.L))-real(54542001618944.L))- real(126863277277184.L))-real(329740727844864.L))- real(997480431632384.L))-real(3776015044788224.L))- real(20945473526677504.L))-real(299514399427461120.L))+ real(3556918619555610624.L))-real(11032967086722301952.L))+ real(14155439335028834304.L))-real(5073464222040883200.L))- real(5779955968848445440.L))+real(6434290606831288320.L))- real(2072059686945669120.L))+real(137597713586235840.L))/ real(677915985303811779525.L); _C4x[73] = (_n*(_n*(_n*(_n*(_n*(_n*(_n*(_n*(_n*(_n*(_n*(_n*(_n*(_n*((- real(5498545266688.L)*_n-real(11517729268224.L))*_n- real(26224700544000.L))-real(66552173766144.L))- real(195930593347584.L))-real(718803292203520.L))- real(3841803656018944.L))-real(52482742277303808.L))+ real(587039826765991936.L))-real(1667227192323994112.L))+ real(1804800343146912768.L))-real(179108019727873536.L))- real(1118922391426406400.L))+real(731871768512448000.L))- real(71080994899921920.L))-real(14118827754094080.L))- real(15898895477401200.L))/real(96845140757687397075.L); _C4x[74] = (_n*(_n*(_n*(_n*(_n*(_n*(_n*(_n*(_n*(_n*(_n*(_n*(_n*((- real(35047232526336.L)*_n-real(87145686519808.L))*_n- real(250690278295552.L))-real(895441870528512.L))- real(4636554886002688.L))-real(60909165336457216.L))+ real(647030786881591296.L))-real(1701163016492072960.L))+ real(1569827665973733376.L))+real(199123813177257984.L))- real(1156588948961511424.L))+real(493641069365731328.L))- real(5537459281065984.L))+real(97709908415139840.L))- real(91528952336885760.L))+real(14331827310729120.L))/ real(96845140757687397075.L); _C4x[75] = (_n*(_n*(_n*(_n*(_n*(_n*(_n*(_n*(_n*(_n*(_n*(_n*((- real(305285790954496.L)*_n-real(1065479510857216.L))*_n- real(5367450969573376.L))-real(68156970345970176.L))+ real(692250924670313472.L))-real(1700792328461852160.L))+ real(1350276171120070656.L))+real(447958408510029312.L))- real(1089580388522673152.L))+real(320713760839981568.L))- real(27927099204524032.L))+real(156890446098642432.L))- real(69929474315480064.L))-real(3111645696929280.L))- real(1658353690944240.L))/real(96845140757687397075.L); _C4x[76] = (_n*(_n*(_n*(_n*(_n*(_n*(_n*(_n*(_n*(_n*(_n*((- real(42229901571899392.L)*_n-real(520507823176384512.L))*_n+ real(5082527022402486272.L))-real(11761333412881776640.L))+ real(8094934215344406528.L))+real(4248953186446409728.L))- real(6925601345339801600.L))+real(1490686984511176704.L))- real(493932233363537920.L))+real(1168235552825901056.L))- real(301464818968707072.L))+real(164057815030480896.L))- real(251302433428193280.L))+real(59732484360696000.L))/ real(677915985303811779525.L); _C4x[77] = (_n*(_n*(_n*(_n*(_n*(_n*(_n*(_n*(_n*(_n*(_n* (real(5257878379207406592.L)*_n-real(11535963820106860288.L))+ real(6925708096131216896.L))+real(4941017122645820160.L))- real(6204077377016465408.L))+real(1054133475733859584.L))- real(755149447055721984.L))+real(1077253339035498240.L))- real(219013245834249216.L))+real(335393525246959872.L))- real(271285432312742400.L))+real(9794275265096448.L))+ real(2778718129058424.L))/real(677915985303811779525.L); _C4x[78] = (_n*(_n*(_n*(_n*(_n*(_n*(_n*(_n*(_n*(_n* (real(5928474029428380672.L)*_n+real(5353966408098588672.L))- real(5543142534577005568.L))+real(815909855239413760.L))- real(938300516833369088.L))+real(938842870494599168.L))- real(216299111776670720.L))+real(433964216427384832.L))- real(229218182294162432.L))+real(74346910989223936.L))- real(119253523284460544.L))+real(36991849087314128.L))/ real(677915985303811779525.L); _C4x[79] = (_n*(_n*(_n*(_n*(_n*(_n*(_n*(_n*((real(695425721257037568.L)- real(4966296417574646272.L)*_n)*_n-real(1049722309639055360.L))+ real(804126897969488128.L))-real(252106372259470848.L))+ real(471035971008664320.L))-real(191180581081469952.L))+ real(145544404923278592.L))-real(153181806523501056.L))+ real(15430278351984384.L))+real(4563635253280152.L))/ real(677915985303811779525.L); _C4x[80] = (_n*(_n*(_n*(_n*(_n*(_n*(_n*((real(98700779151294464.L)- real(158129642176020480.L)*_n)*_n-real(42775972435689472.L))+ real(67135745639350272.L))-real(24535176192491520.L))+ real(28605295271804928.L))-real(21639588578820096.L))+ real(6613915913256960.L))-real(9259482278559744.L))+ real(3453672900064128.L))/real(96845140757687397075.L); _C4x[81] = (_n*(_n*(_n*(_n*(_n*(_n*((real(64180463283399680.L)- real(49222696013062144.L)*_n)*_n-real(24040453782874112.L))+ real(33482163531023360.L))-real(20089351832301568.L))+ real(11542142133902336.L))-real(13185985838921728.L))+ real(2044543018972160.L))+real(583241277623200.L))/ real(96845140757687397075.L); _C4x[82] = (_n*(_n*(_n*(_n*(_n*((real(35923936524951552.L)- real(24968440568492032.L)*_n)*_n-real(18747458754613248.L))+ real(15819949076201472.L))-real(14330204513759232.L))+ real(4661828567015424.L))-real(5553113534976000.L))+ real(2366924995310400.L))/real(96845140757687397075.L); _C4x[83] = (_n*(_n*(_n*(_n*((real(133168047742901248.L)- real(126150281396164608.L)*_n)*_n-real(100154530892681216.L))+ real(52047248303490048.L))-real(59189313238272000.L))+ real(11893293825960960.L))+real(3297500546790240.L))/ real(677915985303811779525.L); _C4x[84] = (_n*(_n*(_n*((real(69695693352140800.L)- real(97688010118627328.L)*_n)*_n-real(68445171555532800.L))+ real(24262380620513280.L))-real(25086978805432320.L))+ real(11812840276083840.L))/real(677915985303811779525.L); _C4x[85] = (_n*(_n*((real(7314406029616896.L)-real(14381433989094400.L)* _n)*_n-real(8001235764039168.L))+real(1917432226983168.L))+ real(520752507222024.L))/real(135583197060762355905.L); _C4x[86] = (_n*((real(1294831347712.L)-real(3365292432384.L)*_n)*_n- real(1193044751360.L))+real(606224480400.L))/real(47225077346138055.L); _C4x[87] = ((real(37023086848.L)-real(135977211392.L)*_n)*_n+ real(9903771944.L))/real(3264406268166225.L); _C4x[88] = (real(16812224.L)-real(31178752.L)*_n)/real(1729945028175.L); _C4x[89] = real(70576.L)/real(29211079275.L); _C4x[90] = (_n*(_n*(_n*(_n*(_n*(_n*(_n*(_n*(_n*(_n*(_n*(_n*(_n*(_n*(_n* (_n*(_n*(_n*(real(1806732800.L)*_n+real(3354817536.L))+ real(6474635776.L))+real(13058088960.L))+real(27705484800.L))+ real(62364503040.L))+real(150565728768.L))+real(395569133568.L))+ real(1153743306240.L))+real(3845811020800.L))+real(15328303925760.L))+ real(79025922461696.L))+real(622329139385856.L))+ real(13335624415411200.L))-real(255599467962048000.L))+ real(1431357020587468800.L))-real(4079367508674286080.L))+ real(6604690252139320320.L))-real(5503908543449433600.L))+ real(1788770276621065920.L))/real(871606266819186573675.L); _C4x[91] = (_n*(_n*(_n*(_n*(_n*(_n*(_n*(_n*(_n*(_n*(_n*(_n*(_n*(_n*(_n* (_n*(_n*(real(31160807424.L)*_n+real(61322082304.L))+ real(126640553984.L))+real(276675840000.L))+real(646157094912.L))+ real(1635731822592.L))+real(4575772680192.L))+real(14548153690112.L))+ real(54940157440000.L))+real(266218026891264.L))+ real(1951122775261184.L))+real(38446111277615104.L))- real(667848070723792896.L))+real(3333906103852800000.L))- real(8342766634281246720.L))+real(11900711228312954880.L))- real(9842283512991928320.L))+real(4403126834759546880.L))- real(825586281517415040.L))/real(871606266819186573675.L); _C4x[92] = (_n*(_n*(_n*(_n*(_n*(_n*(_n*(_n*(_n*(_n*(_n*(_n*(_n*(_n*(_n* (_n*(real(341540329472.L)*_n+real(727668064256.L))+ real(1652933732352.L))+real(4057463574528.L))+real(10966330669056.L))+ real(33541411577856.L))+real(121216399689728.L))+ real(558455712346112.L))+real(3859568036222976.L))+ real(70941192605581312.L))-real(1132276604451657728.L))+ real(5075123766412578816.L))-real(10946236136820590592.L))+ real(12254549796135198720.L))-real(5602740337728092160.L))- real(1990267857197813760.L))+real(3367096991286712320.L))- real(1100781708689886720.L))/real(871606266819186573675.L); _C4x[93] = (_n*(_n*(_n*(_n*(_n*(_n*(_n*(_n*(_n*(_n*(_n*(_n*(_n*(_n*(_n* (real(469241266176.L)*_n+real(1122157381632.L))+real(2946084098048.L))+ real(8722115483648.L))+real(30380136603648.L))+real(134171246389248.L))+ real(882676460449792.L))+real(15296036786436096.L))- real(226926232758206464.L))+real(923361337578817536.L))- real(1723285590740496384.L))+real(1446044552747849728.L))- real(24723824313016320.L))-real(929937542568007680.L))+ real(689388279303352320.L))-real(177215631120353280.L))+ real(6937699844684160.L))/real(124515180974169510525.L); _C4x[94] = (_n*(_n*(_n*(_n*(_n*(_n*(_n*(_n*(_n*(_n*(_n*(_n*(_n*(_n* (real(4792552670208.L)*_n+real(13797968873472.L))+ real(46567221906432.L))+real(198358745567232.L))+ real(1251006461596672.L))+real(20607164849461248.L))- real(286876098739086336.L))+real(1070950837277220864.L))- real(1744206736765459456.L))+real(1046601014161680384.L))+ real(529534896386501632.L))-real(1054375146901442560.L))+ real(422040761261061120.L))+real(13801312887060480.L))- real(2921136776709120.L))-real(16674822433714560.L))/ real(124515180974169510525.L); _C4x[95] = (_n*(_n*(_n*(_n*(_n*(_n*(_n*(_n*(_n*(_n*(_n*(_n*(_n* (real(457253050314752.L)*_n+real(1887492834805760.L))+ real(11474960739164160.L))+real(180846368857290752.L))- real(2380842436087263232.L))+real(8230732165125679104.L))- real(11800798848150781952.L))+real(4673866832177256448.L))+ real(5933823659285458944.L))-real(6529078157228505088.L))+ real(1217244458772930560.L))+real(131933777549801472.L))+ real(767894888560300032.L))-real(498456005927147520.L))+ real(58787877631271040.L))/real(871606266819186573675.L); _C4x[96] = (_n*(_n*(_n*(_n*(_n*(_n*(_n*(_n*(_n*(_n*(_n*(_n* (real(2034847651719168.L)*_n+real(30843702130925568.L))- real(386471325623330816.L))+real(1247190874458378240.L))- real(1586744442263844864.L))+real(347403149298647040.L))+ real(998125552961239040.L))-real(744993018003247104.L))+ real(40773037287516160.L))-real(53852832074948608.L))+ real(150636060145391616.L))-real(37627628509261824.L))- real(4724621221459968.L))-real(3069310381324800.L))/ real(124515180974169510525.L); _C4x[97] = (_n*(_n*(_n*(_n*(_n*(_n*(_n*(_n*(_n*(_n* ((real(9052129090954414080.L)-real(2984381197523116032.L)*_n)*_n- real(10290707408154349568.L))+real(635622021192259584.L))+ real(7314257541586731008.L))-real(3970718183852808192.L))- real(40914328438910976.L))-real(850755590059182080.L))+ real(940894939424219136.L))-real(83120546467510272.L))+ real(186629253504626688.L))-real(219415473714898944.L))+ real(40429168019388288.L))/real(871606266819186573675.L); _C4x[98] = (_n*(_n*(_n*(_n*(_n*(_n*(_n*(_n*(_n*((- real(9443940305919116800.L)*_n-real(762942869175079936.L))*_n+ real(7228014979728711168.L))-real(2959689807403814912.L))- real(36572693608381952.L))-real(1133362591992056832.L))+ real(701394424243054080.L))-real(78029044292978688.L))+ real(368220571488225792.L))-real(196902513544332288.L))- real(6240663471641088.L))-real(3026445874275264.L))/ real(871606266819186573675.L); _C4x[99] = (_n*(_n*(_n*(_n*(_n*(_n*(_n*(_n*(_n* (real(6923992234055540736.L)*_n-real(2194738354062471168.L))+ real(112113459619725312.L))-real(1242876977080782848.L))+ real(481676035337183232.L))-real(169171412057518080.L))+ real(437503652620812288.L))-real(128676265734868992.L))+ real(70483563070169088.L))-real(110377237616013312.L))+ real(27114236814276864.L))/real(871606266819186573675.L); _C4x[100] = (_n*(_n*(_n*(_n*(_n*(_n*(_n*(_n*(real(43194640264409088.L)*_n- real(176681272721178624.L))+real(46742589687320576.L))- real(40223654794616832.L))+real(60694833131581440.L))- real(13244118889218048.L))+real(22297358447087616.L))- real(18017382895755264.L))+real(577794647764992.L))+ real(180445453095936.L))/real(124515180974169510525.L); _C4x[101] = (_n*(_n*(_n*(_n*(_n*(_n*(_n*(real(33922707161907200.L)*_n- real(53833689181081600.L))+real(53389011405594624.L))- real(13631522973020160.L))+real(30408258580267008.L))- real(15285124271149056.L))+real(5425597726531584.L))- real(8837278156664832.L))+real(2666877652373760.L))/ real(124515180974169510525.L); _C4x[102] = (_n*(_n*(_n*(_n*(_n*(_n*(real(313833724893591552.L)*_n- real(121949742953385984.L))+real(236693559212730368.L))- real(87728361723125760.L))+real(80399991459207168.L))- real(81231846402158592.L))+real(6873156243179520.L))+ real(2132364860640000.L))/real(871606266819186573675.L); _C4x[103] = (_n*(_n*(_n*(_n*(_n*(real(33782729382322176.L)*_n- real(11390490463793152.L))+real(16501329095311360.L))- real(11364797211217920.L))+real(3604696586526720.L))- real(5386139578183680.L))+real(1896701494728960.L))/ real(124515180974169510525.L); _C4x[104] = (_n*(_n*(_n*(_n*(real(137907822072991744.L)*_n- real(72278885831720960.L))+real(48390416246108160.L))- real(54127280904560640.L))+real(7031949305794560.L))+ real(2090449232686080.L))/real(871606266819186573675.L); _C4x[105] = (_n*(_n*(_n*(real(1268559669477376.L)*_n- real(1055625510481920.L))+real(337844092723200.L))- real(446064994013184.L))+real(176958549427968.L))/ real(15847386669439755885.L); _C4x[106] = (_n*(_n*(real(11327093819904.L)*_n-real(13040475800576.L))+ real(2209574022656.L))+real(635330794560.L))/real(303589782939458925.L); _C4x[107] = (_n*(real(23101878272.L)*_n-real(26986989568.L))+ real(11760203136.L))/real(1399031257785525.L); _C4x[108] = (real(2135226368.L)*_n+real(598833664.L))/ real(340304900542425.L); _C4x[109] = real(567424.L)/real(87633237825.L); _C4x[110] = (_n*(_n*(_n*(_n*(_n*(_n*(_n*(_n*(_n*(_n*(_n*(_n*(_n*(_n*(_n* (_n*((-real(392933376.L)*_n-real(865908736.L))*_n-real(2015985664.L))- real(5002905600.L))-real(13385551872.L))-real(39200544768.L))- real(128292691968.L))-real(483473385472.L))-real(2197606297600.L))- real(13053781407744.L))-real(119901399597056.L))- real(3042498014775296.L))+real(70412096913371136.L))- real(488972895231744000.L))+real(1799420254452817920.L))- real(4048695572518840320.L))+real(5698164139100590080.L))- real(4403126834759546880.L))+real(1375977135862358400.L))/ real(1065296548334561367825.L); _C4x[111] = (_n*(_n*(_n*(_n*(_n*(_n*(_n*(_n*(_n*(_n*(_n*(_n*(_n*(_n*(_n* ((-real(10859667456.L)*_n-real(26129596416.L))*_n-real(67565166592.L))- real(190510645248.L))-real(597656199168.L))-real(2147714695168.L))- real(9251328565248.L))-real(51687700119552.L))-real(442510004084736.L))- real(10350198236184576.L))+real(217800892368052224.L))- real(1352607688854388736.L))+real(4365550008629010432.L))- real(8449451629604536320.L))+real(10196714775232634880.L))- real(7524848336802693120.L))+real(3108089530418503680.L))- real(550390854344943360.L))/real(1065296548334561367825.L); _C4x[112] = (_n*(_n*(_n*(_n*(_n*(_n*(_n*(_n*(_n*(_n*(_n*(_n*(_n*(_n*((- real(28322922496.L)*_n-real(77318326272.L))*_n-real(233990443008.L))- real(807704598528.L))-real(3324931350528.L))-real(17642111838208.L))- real(142325808197632.L))-real(3105726287394816.L))+ real(60163327626133504.L))-real(337509386084304896.L))+ real(955387198567870464.L))-real(1536585681053964288.L))+ real(1352359321669509120.L))-real(401084780036843520.L))- real(377800356454379520.L))+real(410906573257082880.L))- real(122566030589420160.L))/real(152185221190651623975.L); _C4x[113] = (_n*(_n*(_n*(_n*(_n*(_n*(_n*(_n*(_n*(_n*(_n*(_n*(_n*((- real(3451898904576.L)*_n-real(11509470429184.L))*_n- real(45566660952064.L))-real(231289205489664.L))- real(1772892123971584.L))-real(36430772070547456.L))+ real(656327536659873792.L))-real(3359914290911510528.L))+ real(8398146137172262912.L))-real(11093579178112155648.L))+ real(6125882406813188096.L))+real(2648948920916049920.L))- real(6159280396664586240.L))+real(3575132732167127040.L))- real(763390410979983360.L))+real(10223978718481920.L))/ real(1065296548334561367825.L); _C4x[114] = (_n*(_n*(_n*(_n*(_n*(_n*(_n*(_n*(_n*(_n*(_n*(_n*((- real(76683653804032.L)*_n-real(374463390386176.L))*_n- real(2745016498610176.L))-real(53512872384018432.L))+ real(904156832243331072.L))-real(4262573203092793344.L))+ real(9482935732681162752.L))-real(10205760518322690048.L))+ real(2403880569128636416.L))+real(5958539126415669248.L))- real(5957055786116915200.L))+real(1498212950990063616.L))+ real(298006753603055616.L))+real(48008247895480320.L))- real(111611767676760960.L))/real(1065296548334561367825.L); _C4x[115] = (_n*(_n*(_n*(_n*(_n*(_n*(_n*(_n*(_n*(_n*(_n*((- real(554014149025792.L)*_n-real(10308000440942592.L))*_n+ real(164484462983684096.L))-real(719825874104074240.L))+ real(1436205938503901184.L))-real(1246004554450534400.L))- real(105163267509248000.L))+real(1032509428877082624.L))- real(613525591346421760.L))+real(1918121007546368.L))- real(1044076473114624.L))+real(111223341156089856.L))- real(54798832518438912.L))+real(4984983412427520.L))/ real(152185221190651623975.L); _C4x[116] = (_n*(_n*(_n*(_n*(_n*(_n*(_n*(_n*(_n*(_n*(_n* (real(198527119152488448.L)*_n-real(812046458690959360.L))+ real(1463063303185608704.L))-real(1006189438757087232.L))- real(437331274659282944.L))+real(1030813109133715456.L))- real(368173541652836352.L))-real(60736720782428160.L))- real(99244829673136128.L))+real(128697004859443200.L))- real(15795452235878400.L))-real(3877914909370368.L))- real(3732916453425024.L))/real(152185221190651623975.L); _C4x[117] = (_n*(_n*(_n*(_n*(_n*(_n*(_n*(_n*(_n*(_n* (real(10161768486526976000.L)*_n-real(5391658475412127744.L))- real(4639245548691324928.L))+real(6560265942775365632.L))- real(1288318466069168128.L))-real(246271563805360128.L))- real(1138793026234286080.L))+real(625782633730408448.L))+ real(17323466731225088.L))+real(212323226814906368.L))- real(187612989987684352.L))+real(27777611745286144.L))/ real(1065296548334561367825.L); _C4x[118] = (_n*(_n*(_n*(_n*(_n*(_n*(_n*(_n*((real(5661337451056508928.L)- real(5624892992935469056.L)*_n)*_n-real(473813810441388032.L))+ real(151095731556732928.L))-real(1260342903828406272.L))+ real(311162912578990080.L))-real(75331672625922048.L))+ real(376502965042778112.L))-real(132150153865863168.L))- real(12217548259381248.L))-real(6620294465535744.L))/ real(1065296548334561367825.L); _C4x[119] = (_n*(_n*(_n*(_n*(_n*(_n*(_n*((real(78263723078057984.L)- real(5034390572679168.L)*_n)*_n-real(166737284054204416.L))+ real(15583915068260352.L))-real(35331513829539840.L))+ real(55980919345840128.L))-real(7948506096353280.L))+ real(10959902127390720.L))-real(14302725018796032.L))+ real(2871205591908864.L))/real(152185221190651623975.L); _C4x[120] = (_n*(_n*(_n*(_n*(_n*(_n*((real(33212974310010880.L)- real(975767634379243520.L)*_n)*_n-real(395544530406187008.L))+ real(319933879478456320.L))-real(41679209874046976.L))+ real(168633590086463488.L))-real(98771750032105472.L))- real(2270478922428416.L))-real(1039330428371200.L))/ real(1065296548334561367825.L); _C4x[121] = (_n*(_n*(_n*(_n*(_n*((real(227465211760410624.L)- real(483044026864402432.L)*_n)*_n-real(80632288666288128.L))+ real(214632992863027200.L))-real(67273596127051776.L))+ real(36701859280257024.L))-real(58103190002565120.L))+ real(14534198890122240.L))/real(1065296548334561367825.L); _C4x[122] = (_n*(_n*(_n*(_n*((real(30832813228552192.L)- real(20115348541956096.L)*_n)*_n-real(6893529524879360.L))+ real(12232673379717120.L))-real(9848731208785920.L))+ real(289254201569280.L))+real(95586646544640.L))/ real(152185221190651623975.L); _C4x[123] = (_n*(_n*(_n*((real(1572942643527680.L)- real(666117418074112.L)*_n)*_n-real(760917298298880.L))+ real(286428586475520.L))-real(469663005818880.L))+ real(139020022863360.L))/real(13835020108241056725.L); _C4x[124] = (_n*(_n*((real(4481427708850176.L)-real(4302902592716800.L)* _n)*_n-real(4381314699976704.L))+real(322683226951680.L))+ real(103467567151872.L))/real(96845140757687397075.L); _C4x[125] = (_n*((real(5356912246784.L)-real(16274729926656.L)*_n)*_n- real(8300880265216.L))+real(2806096398336.L))/ real(371054179148227575.L); _C4x[126] = ((real(5079242752.L)-real(45133008896.L)*_n)*_n+ real(1557031040.L))/real(1399031257785525.L); _C4x[127] = (real(39440128.L)-real(104833024.L)*_n)/real(6786707418225.L); _C4x[128] = real(14777984.L)/real(14401062082575.L); _C4x[129] = (_n*(_n*(_n*(_n*(_n*(_n*(_n*(_n*(_n*(_n*(_n*(_n*(_n*(_n*(_n* (_n*(real(169275392.L)*_n+real(459210752.L))+real(1348931584.L))+ real(4358086656.L))+real(15819288576.L))+real(66522136576.L))+ real(339738054656.L))+real(2285510549504.L))+real(23997860769792.L))+ real(703937249247232.L))-real(19094297885831168.L))+ real(158209896768315392.L))-real(711944535457419264.L))+ real(2034127244164055040.L))-real(3898743884647772160.L))+ real(4962037671369891840.L))-real(3626104452154920960.L))+ real(1100781708689886720.L))/real(1258986829849936161975.L); _C4x[130] = (_n*(_n*(_n*(_n*(_n*(_n*(_n*(_n*(_n*(_n*(_n*(_n*(_n*(_n*(_n* (real(2586574848.L)*_n+real(8045019136.L))+real(27997405184.L))+ real(112329211904.L))+real(544229883904.L))+real(3449647939584.L))+ real(33850264354816.L))+real(918775240900608.L))- real(22781969157455872.L))+real(170000845693206528.L))- real(676483696526589952.L))+real(1672504622979334144.L))- real(2712169658885406720.L))+real(2897090317445775360.L))- real(1963003913948528640.L))+real(763390410979983360.L))- real(129503730434104320.L))/real(419662276616645387325.L); _C4x[131] = (_n*(_n*(_n*(_n*(_n*(_n*(_n*(_n*(_n*(_n*(_n*(_n*(_n*(_n* (real(257397153792.L)*_n+real(991547604992.L))+real(4590186438656.L))+ real(27638225534976.L))+real(255782598500352.L))+ real(6489129888202752.L))-real(148657574541385728.L))+ real(1008897492888649728.L))-real(3569681789506560000.L))+ real(7568884147602505728.L))-real(9830056295264837632.L))+ real(7043422417166041088.L))-real(1014218688873406464.L))- real(2830708542577950720.L))+real(2453754892435660800.L))- real(688414567044449280.L))/real(1258986829849936161975.L); _C4x[132] = (_n*(_n*(_n*(_n*(_n*(_n*(_n*(_n*(_n*(_n*(_n*(_n*(_n* (real(9881440452608.L)*_n+real(56879822225408.L))+ real(500059034288128.L))+real(11953729657683968.L))- real(255233639750139904.L))+real(1589618325900509184.L))- real(5037608201230352384.L))+real(9151828754188976128.L))- real(9141447965273128960.L))+real(2873266155477745664.L))+ real(4081748845846396928.L))-real(5442357228092080128.L))+ real(2653374372573904896.L))-real(478897090117877760.L))- real(6815985812321280.L))/real(1258986829849936161975.L); _C4x[133] = (_n*(_n*(_n*(_n*(_n*(_n*(_n*(_n*(_n*(_n*(_n*(_n* (real(119846784831488.L)*_n+real(2717226071605248.L))- real(54472512256217088.L))+real(313795243407974400.L))- real(897176437303652352.L))+real(1397445741687767040.L))- real(1015935087271563264.L))-real(174507545995321344.L))+ real(929743493931929600.L))-real(632793424783261696.L))+ real(85099239783493632.L))+real(46941397942247424.L))+ real(13716642255851520.L))-real(14711522172556800.L))/ real(179855261407133737425.L); _C4x[134] = (_n*(_n*(_n*(_n*(_n*(_n*(_n*(_n*(_n*(_n* ((real(398673786674020352.L)-real(74312835739680768.L)*_n)*_n- real(1035243455580602368.L))+real(1382705355455004672.L))- real(659652413541056512.L))-real(600562940514205696.L))+ real(954064446949294080.L))-real(336068503539220480.L))- real(70785526733209600.L))-real(29585858716827648.L))+ real(105774834699075584.L))-real(42086948419600384.L))+ real(2946537966071808.L))/real(179855261407133737425.L); _C4x[135] = (_n*(_n*(_n*(_n*(_n*(_n*(_n*(_n*(_n* ((real(1297878816003129344.L)-real(1134727193625591808.L)*_n)*_n- real(312050739452739584.L))-real(852430315341479936.L))+ real(809425076323778560.L))-real(96223542886465536.L))- real(61961501075865600.L))-real(131412737654390784.L))+ real(101236061902766080.L))-real(2207953883824128.L))- real(2251654854770688.L))-real(3985164375568384.L))/ real(179855261407133737425.L); _C4x[136] = (_n*(_n*(_n*(_n*(_n*(_n*(_n*(_n*((-real(61664578920644608.L)* _n-real(6753982490852524032.L))*_n+real(4273998523688026112.L))+ real(260984894785126400.L))+real(126415132245491712.L))- real(1200871864213504000.L))+real(332075616826032128.L))+ real(41286869034270720.L))+real(229470885042323456.L))- real(158524418181627904.L))+real(19285050112462848.L))/ real(1258986829849936161975.L); _C4x[137] = (_n*(_n*(_n*(_n*(_n*(_n*(_n*(_n*(real(2937968846665752576.L)* _n+real(580225142869786624.L))+real(704289592006991872.L))- real(1090927053558988800.L))+real(29599362495324160.L))- real(137634015480872960.L))+real(358358593764089856.L))- real(80588156826533888.L))-real(12856700074975232.L))- real(8778140571196416.L))/real(1258986829849936161975.L); _C4x[138] = (_n*(_n*(_n*(_n*(_n*(_n*(_n*(real(1101287614239211520.L)*_n- real(799007335375470592.L))-real(73108334853292032.L))- real(349601572574822400.L))+real(313582557425958912.L))- real(10680775242317824.L))+real(85512153885376512.L))- real(89525206309109760.L))+real(15037121091328000.L))/ real(1258986829849936161975.L); _C4x[139] = (_n*(_n*(_n*(_n*(_n*((-real(18013691360657408.L)*_n- real(478168461578895360.L))*_n+real(195166094969552896.L))- real(29821159111589888.L))+real(175097180747317248.L))- real(73698183549648896.L))-real(5325049517096960.L))- real(2624601201223680.L))/real(1258986829849936161975.L); _C4x[140] = (_n*(_n*(_n*(_n*(_n*(real(12874658156445696.L)*_n- real(15040116181336064.L))+real(28678326775054336.L))- real(5145330094276608.L))+real(5563981038551040.L))- real(7692796360949760.L))+real(1628377902213120.L))/ real(179855261407133737425.L); _C4x[141] = (_n*(_n*(_n*(_n*(real(24927020799975424.L)*_n- real(3592207192850432.L))+real(13059067482710016.L))- real(8079662562951168.L))-real(136102453714944.L))- real(59727120933888.L))/real(179855261407133737425.L); _C4x[142] = (_n*(_n*(_n*(real(1584279953604608.L)*_n- real(515572530610176.L))+real(279647089459200.L))- real(445527616978944.L))+real(112723010408448.L))/ real(16350478309739430675.L); _C4x[143] = (_n*(_n*(real(163424955432960.L)*_n-real(131077278072832.L))+ real(3599008759808.L))+real(1233827696640.L))/ real(3946667178212966025.L); _C4x[144] = (_n*(real(108562612224.L)*_n-real(178562334720.L))+ real(52104335360.L))/real(9793218804498675.L); _C4x[145] = (real(12387831808.L)*_n+real(4069857792.L))/ real(7675766090012475.L); _C4x[146] = real(20016128.L)/real(4800354027525.L); _C4x[147] = (_n*(_n*(_n*(_n*(_n*(_n*(_n*(_n*(_n*(_n*(_n*(_n*(_n*(_n*((- real(149946368.L)*_n-real(529858560.L))*_n-real(2113011712.L))- real(9810411520.L))-real(55628267520.L))-real(418139144192.L))- real(4941644431360.L))-real(164556759564288.L))+ real(5119543630888960.L))-real(49275607447306240.L))+ real(261864656719970304.L))-real(904056552961802240.L))+ real(2169735727108325376.L))-real(3698413171207372800.L))+ real(4362230919885619200.L))-real(3053561643919933440.L))+ real(906526113038730240.L))/real(1452677111365310956125.L); _C4x[148] = (_n*(_n*(_n*(_n*(_n*(_n*(_n*(_n*(_n*(_n*(_n*(_n*(_n*((- real(12531793920.L)*_n-real(55567712256.L))*_n-real(299357700096.L))- real(2124741083136.L))-real(23538174263296.L))-real(728322363883520.L))+ real(20831996264841216.L))-real(181963207909310464.L))+ real(863667010530967552.L))-real(2611406069778874368.L))+ real(5361990589980344320.L))-real(7626949828623204352.L))+ real(7419585808083714048.L))-real(4703622904920145920.L))+ real(1744892367954247680.L))-real(286271404117493760.L))/ real(1452677111365310956125.L); _C4x[149] = (_n*(_n*(_n*(_n*(_n*(_n*(_n*(_n*(_n*(_n*(_n*(_n*((- real(927214993408.L)*_n-real(6257462149120.L))*_n- real(65484820316160.L))-real(1898837211414528.L))+ real(50385219863838720.L))-real(402944765957701632.L))+ real(1719846441419538432.L))-real(4554766547979927552.L))+ real(7846395409544380416.L))-real(8602387447067115520.L))+ real(5080156900163846144.L))+real(125177061179326464.L))- real(2799414277283119104.L))+real(2105250574379581440.L))- real(565726822422666240.L))/real(1452677111365310956125.L); _C4x[150] = (_n*(_n*(_n*(_n*(_n*(_n*(_n*(_n*(_n*(_n*(_n*((- real(19910873841664.L)*_n-real(544816899293184.L))*_n+ real(13512995641491456.L))-real(99717350728663040.L))+ real(385414844182953984.L))-real(896609185272168448.L))+ real(1279117834987765760.L))-real(987215180807012352.L))+ real(67172913134960640.L))+real(666861948268183552.L))- real(665817143445553152.L))+real(283228906102718464.L))- real(43351363178987520.L))-real(2032095149015040.L))/ real(207525301623615850875.L); _C4x[151] = (_n*(_n*(_n*(_n*(_n*(_n*(_n*(_n*(_n*(_n*(_n* (real(21786850633973760.L)*_n-real(149363323062452224.L))+ real(526184551103856640.L))-real(1078816846619344896.L))+ real(1256009240219222016.L))-real(562837422305181696.L))- real(501940701699244032.L))+real(878451802467205120.L))- real(444054908754198528.L))+real(9362254906785792.L))+ real(41507684515053568.L))+real(18063067991244800.L))- real(13377959731015680.L))/real(207525301623615850875.L); _C4x[152] = (_n*(_n*(_n*(_n*(_n*(_n*(_n*(_n*(_n*(_n* (real(656886378301227008.L)*_n-real(1190392899378872320.L))+ real(1107092246979674112.L))-real(116574070874570752.L))- real(837731635679985664.L))+real(764530737517953024.L))- real(135302007315496960.L))-real(87352112740040704.L))- real(54114460244115456.L))+real(96797148336619520.L))- real(32388949501542400.L))+real(1693412624179200.L))/ real(207525301623615850875.L); _C4x[153] = (_n*(_n*(_n*(_n*(_n*(_n*(_n*(_n*(_n* (real(6220637223153827840.L)*_n+real(1855146056207302656.L))- real(6694680161110982656.L))+real(3652579978774315008.L))+ real(399894681956646912.L))-real(151881061471354880.L))- real(1015637781855076352.L))+real(521501468079685632.L))+ real(39324846131773440.L))-real(3853722403471360.L))- real(28081452791992320.L))/real(1452677111365310956125.L); _C4x[154] = (_n*(_n*(_n*(_n*(_n*(_n*(_n*((real(1958671363707240448.L)- real(6479713082658521088.L)*_n)*_n+real(799422552669683712.L))+ real(596762606859976704.L))-real(1082398437607997440.L))+ real(106014542466646016.L))+real(23867686451675136.L))+ real(236421650048876544.L))-real(133108134403112960.L))+ real(13465173306654720.L))/real(1452677111365310956125.L); _C4x[155] = (_n*(_n*(_n*(_n*(_n*(_n*(_n*(real(584562717890707456.L)*_n+ real(1133625790197268480.L))-real(764347409406099456.L))- real(119825618372526080.L))-real(214732003115270144.L))+ real(322021955268378624.L))-real(41862722661122048.L))- real(10871997875486720.L))-real(10004602669824000.L))/ real(1452677111365310956125.L); _C4x[156] = (_n*(_n*(_n*(_n*(_n*((-real(360984858245726208.L)*_n- real(87667595082203136.L))*_n-real(422169720932270080.L))+ real(224180053135589376.L))+real(11620233304866816.L))+ real(93320750352564224.L))-real(79286784268697600.L))+ real(11333055676723200.L))/real(1452677111365310956125.L); _C4x[157] = (_n*(_n*(_n*(_n*((real(11853630101913600.L)- real(69785117676797952.L)*_n)*_n-real(6119178497425408.L))+ real(24807372915081216.L))-real(7446974715658240.L))- real(909143107043328.L))-real(528353597048832.L))/ real(207525301623615850875.L); _C4x[158] = (_n*(_n*(_n*((real(24909053679370240.L)- real(20706317340508160.L)*_n)*_n-real(1991732527890432.L))+ real(6073259315429376.L))-real(7057052877717504.L))+ real(1285162878025728.L))/real(207525301623615850875.L); _C4x[159] = (_n*(_n*((real(13601006154940416.L)-real(2358313674080256.L)* _n)*_n-real(6413660820340736.L))-real(375056979197952.L))- real(174118985576448.L))/real(207525301623615850875.L); _C4x[160] = (_n*((real(70517228830720.L)-real(75577194184704.L)*_n)*_n- real(101051637170176.L))+real(22175812657152.L))/ real(4553846744091883875.L); _C4x[161] = ((-real(103808499187712.L)*_n-real(1278584029184.L))*_n- real(541336621056.L))/real(4260050179956923625.L); _C4x[162] = (real(34096398336.L)-real(133717557248.L)*_n)/ real(8856653180783625.L); _C4x[163] = real(383798272.L)/real(2232164622799125.L); _C4x[164] = (_n*(_n*(_n*(_n*(_n*(_n*(_n*(_n*(_n*(_n*(_n*(_n*(_n*(_n* (real(300810240.L)*_n+real(1528561664.L))+real(9530114048.L))+ real(79173255168.L))+real(1040248602624.L))+real(38772902461440.L))- real(1360928876396544.L))+real(14919812867162112.L))- real(91383853811367936.L))+real(369265368462262272.L))- real(1059928372437975040.L))+real(2235485294596456448.L))- real(3482198247352172544.L))+real(3869109163724636160.L))- real(2617338551931371520.L))+real(763390410979983360.L))/ real(1646367392880685750275.L); _C4x[165] = (_n*(_n*(_n*(_n*(_n*(_n*(_n*(_n*(_n*(_n*(_n*(_n*(_n* (real(56632541184.L)*_n+real(445279371264.L))+real(5501075062784.L))+ real(191308975570944.L))-real(6207447116021760.L))+ real(62207244709134336.L))-real(343558934130327552.L))+ real(1230884561540874240.L))-real(3068508179679674368.L))+ real(5483031228682076160.L))-real(7044447029126234112.L))+ real(6362535069236068352.L))-real(3823590232386699264.L))+ real(1365567940138106880.L))-real(218111545994280960.L))/ real(1646367392880685750275.L); _C4x[166] = (_n*(_n*(_n*(_n*(_n*(_n*(_n*(_n*(_n*(_n*(_n*(_n* (real(2391044784128.L)*_n+real(78145847820288.L))- real(2362062434992128.L))+real(21806224685137920.L))- real(109329533708009472.L))+real(348468691379159040.L))- real(749907814303924224.L))+real(1099803348493664256.L))- real(1045479927285022720.L))+real(505852702924734464.L))+ real(120187917227261952.L))-real(381491995975090176.L))+ real(260108179073925120.L))-real(67736504967168000.L))/ real(235195341840097964325.L); _C4x[167] = (_n*(_n*(_n*(_n*(_n*(_n*(_n*(_n*(_n*(_n* ((real(41240607786008576.L)-real(4816557198802944.L)*_n)*_n- real(188906347105878016.L))+real(537899510193979392.L))- real(995896220956229632.L))+real(1162322253485441024.L))- real(683754595921428480.L))-real(170867380692975616.L))+ real(680936272925032448.L))-real(561807627048714240.L))+ real(213368433485545472.L))-real(27455863346692096.L))- real(2438514178818048.L))/real(235195341840097964325.L); _C4x[168] = (_n*(_n*(_n*(_n*(_n*(_n*(_n*(_n*(_n* ((real(5015157907517341696.L)-real(1963496830352752640.L)*_n)*_n- real(7959455151219539968.L))+real(7066414745468796928.L))- real(1205923638707486720.L))-real(4741698503339671552.L))+ real(5382302573200408576.L))-real(2064785082675101696.L))- real(228174121518235648.L))+real(229963148852985856.L))+ real(144056081552244736.L))-real(84715788878938112.L))/ real(1646367392880685750275.L); _C4x[169] = (_n*(_n*(_n*(_n*(_n*(_n*(_n*(_n*((real(5101546684427010048.L)- real(8209118419716407296.L)*_n)*_n+real(2084680626216108032.L))- real(6225070833373020160.L))+real(3866278385824038912.L))- real(42589676569624576.L))-real(532652706878193664.L))- real(500488835704553472.L))+real(605816413569941504.L))- real(175110895664889856.L))+real(6343874051407872.L))/ real(1646367392880685750275.L); _C4x[170] = (_n*(_n*(_n*(_n*(_n*(_n*(_n*(_n*(real(638926083481141248.L)* _n-real(865003604119912448.L))+real(264318996107493376.L))+ real(119786763567759360.L))+real(27135460419567616.L))- real(144009119639011328.L))+real(51310560333004800.L))+ real(9657211345174528.L))+real(958005652750336.L))- real(3916209768824832.L))/real(235195341840097964325.L); _C4x[171] = (_n*(_n*(_n*(_n*(_n*(_n*(_n*(real(257519614605393920.L)*_n+ real(707084672843644928.L))+real(951638781007495168.L))- real(867584213670952960.L))-real(45673240443486208.L))- real(11628525625278464.L))+real(234906617891520512.L))- real(111448526733967360.L))+real(9405754953728000.L))/ real(1646367392880685750275.L); _C4x[172] = (_n*(_n*(_n*(_n*(_n*(_n*(real(1297245565824532480.L)*_n- real(412672078605975552.L))-real(161685655913234432.L))- real(280630559576686592.L))+real(276405190496354304.L))- real(14057077774745600.L))-real(7771762209849344.L))- real(10626569204170752.L))/real(1646367392880685750275.L); _C4x[173] = (_n*(_n*(_n*(_n*((-real(110445053607936.L)*_n- real(64128886153674752.L))*_n+real(19890493406052352.L))+ real(2558162612256768.L))+real(14116845844955136.L))- real(9969001956900864.L))+real(1226698065543168.L))/ real(235195341840097964325.L); _C4x[174] = (_n*(_n*(_n*((-real(28684297699328.L)*_n- real(9693923228254208.L))*_n+real(23620418839511040.L))- real(4911054773551104.L))-real(886809947013120.L))- real(629766424559616.L))/real(235195341840097964325.L); _C4x[175] = (_n*(_n*(_n*(real(140945199254732800.L)*_n- real(105404375236608.L))+real(46148979941965824.L))- real(44976731928920064.L))+real(7137650489131008.L))/ real(1646367392880685750275.L); _C4x[176] = (_n*(_n*(real(96129231059681280.L)*_n- real(34421773029081088.L))-real(3412639660638208.L))- real(1802629157683200.L))/real(1646367392880685750275.L); _C4x[177] = (_n*(real(10114609184768.L)*_n-real(12593113071616.L))+ real(2426416627712.L))/real(689722410088263825.L); _C4x[178] = (-real(3482423656448.L)*_n-real(1549836288000.L))/ real(4045128729436574325.L); _C4x[179] = real(248348672.L)/real(87234019741575.L); _C4x[180] = (_n*(_n*(_n*(_n*(_n*(_n*(_n*(_n*(_n*(_n*(_n*(_n*((- real(1693450240.L)*_n-real(15410397184.L))*_n-real(222858051584.L))- real(9192894627840.L))+real(359358608179200.L))- real(4420110880604160.L))+real(30646102105522176.L))- real(141738222238040064.L))+real(472460740793466880.L))- real(1181151851983667200.L))+real(2253274302245765120.L))- real(3267247738256359424.L))+real(3459438781683204096.L))- real(2275946566896844800.L))+real(654334637982842880.L))/ real(1840057674396060544425.L); _C4x[181] = (_n*(_n*(_n*(_n*(_n*(_n*(_n*(_n*(_n*(_n*(_n*((- real(61641588736.L)*_n-real(2381668417536.L))*_n+ real(86500760879104.L))-real(978983583744000.L))+ real(6172754149638144.L))-real(25594546813403136.L))+ real(75155917068304384.L))-real(161986539700617216.L))+ real(259593813622784000.L))-real(307359075329376256.L))+ real(261304078747828224.L))-real(150284725687156736.L))+ real(52021635814785024.L))-real(8128380596060160.L))/ real(87621794018860025925.L); _C4x[182] = (_n*(_n*(_n*(_n*(_n*(_n*(_n*(_n*(_n*(_n*(_n* (real(5285432285724672.L)*_n-real(55412982395961344.L))+ real(319743695216705536.L))-real(1193876712442036224.L))+ real(3086708369231183872.L))-real(5661769139308986368.L))+ real(7282574686883414016.L))-real(6102012183017160704.L))+ real(2354179944623374336.L))+real(1282935130412285952.L))- real(2502320409336086528.L))+real(1588104937790242816.L))- real(403980515624189952.L))/real(1840057674396060544425.L); _C4x[183] = (_n*(_n*(_n*(_n*(_n*(_n*(_n*(_n*(_n*(_n* (real(603798871570644992.L)*_n-real(2039337822724292608.L))+ real(4644753579465244672.L))-real(7165143090901024768.L))+ real(6988672051322028032.L))-real(2940454207150358528.L))- real(2288935641272025088.L))+real(4598992935197868032.L))- real(3296581035499716608.L))+real(1134355847674068992.L))- real(119988600614944768.L))-real(17701806631419904.L))/ real(1840057674396060544425.L); _C4x[184] = (_n*(_n*(_n*(_n*(_n*(_n*(_n*(_n*(_n* (real(5968264113194795008.L)*_n-real(7626405621199798272.L))+ real(5068461112891015168.L))+real(912357630233018368.L))- real(5219403061313667072.L))+real(4490483850622271488.L))- real(1279758793422405632.L))-real(376269579253972992.L))+ real(166908374111223808.L))+real(152899952527802368.L))- real(76584293960810496.L))/real(1840057674396060544425.L); _C4x[185] = (_n*(_n*(_n*(_n*(_n*(_n*(_n*(_n*(real(341776000018808832.L)* _n+real(567344213465759744.L))-real(827921502658625536.L))+ real(360134481241178112.L))+real(68079636942159872.L))- real(53432144046850048.L))-real(82107844175855616.L))+ real(76293255540506624.L))-real(19398007076159488.L))+ real(404460020760576.L))/real(262865382056580077775.L); _C4x[186] = (_n*(_n*(_n*(_n*(_n*(_n*((real(71849889235468288.L)- real(680728882055217152.L)*_n)*_n+real(124968317697916928.L))+ real(69475315626803200.L))-real(133450238712086528.L))+ real(32481179049918464.L))+real(11309002154573824.L))+ real(2197304911593472.L))-real(3757781191393280.L))/ real(262865382056580077775.L); _C4x[187] = (_n*(_n*(_n*(_n*(_n*(_n*(real(323066502771113984.L)*_n+ real(1137036911978741760.L))-real(624204446930305024.L))- real(133699938788835328.L))-real(51609859484811264.L))+ real(227350919581270016.L))-real(93239859434487808.L))+ real(6531637533474816.L))/real(1840057674396060544425.L); _C4x[188] = (_n*(_n*(_n*(_n*((-real(16269578710548480.L)*_n- real(18971230665703424.L))*_n-real(46510233582829568.L))+ real(32607942700695552.L))+real(726848479690752.L))- real(623885324648448.L))-real(1550951395917824.L))/ real(262865382056580077775.L); _C4x[189] = (_n*(_n*(_n*((real(67157483088510976.L)- real(433933481381199872.L)*_n)*_n+real(14001368954044416.L))+ real(101779908304306176.L))-real(61181036681232384.L))+ real(6527114028187648.L))/real(1840057674396060544425.L); _C4x[190] = (_n*(_n*((real(152140918225895424.L)- real(95773494987456512.L)*_n)*_n-real(20248671783223296.L))- real(5382884572004352.L))-real(4859128704303104.L))/ real(1840057674396060544425.L); _C4x[191] = (_n*(_n*(real(7095719106183168.L)*_n+ real(49228189624434688.L))-real(40728868243374080.L))+ real(5687198492000256.L))/real(1840057674396060544425.L); _C4x[192] = ((-real(329029822447616.L)*_n-real(46948345708544.L))*_n- real(28862909874176.L))/real(23896852914234552525.L); _C4x[193] = (real(1671067926528.L)-real(9780355661824.L)*_n)/ real(645860889573906825.L); _C4x[194] = -real(1494646784.L)/real(2827408522212225.L); _C4x[195] = (_n*(_n*(_n*(_n*(_n*(_n*(_n*(_n*(_n*(_n*(_n*(_n* (real(48432676864.L)*_n+real(2190647230464.L))-real(94380384845824.L))+ real(1287005247897600.L))-real(9961420618727424.L))+ real(51862634332422144.L))-real(196645821843767296.L))+ real(566952888952160256.L))-real(1272009686751641600.L))+ real(2238737048682889216.L))-real(3061802140110422016.L))+ real(3115517967129903104.L))-real(2002832978869223424.L))+ real(568986641724211200.L))/real(2033747955911435338575.L); _C4x[196] = (_n*(_n*(_n*(_n*(_n*(_n*(_n*(_n*(_n*(_n* ((real(6610643125796864.L)-real(523788223512576.L)*_n)*_n- real(46881311163416576.L))+real(220938352327655424.L))- real(747159252333756416.L))+real(1886699773214326784.L))- real(3625669618330238976.L))+real(5320634804012580864.L))- real(5890153090652307456.L))+real(4761648149984968704.L))- real(2639749213528784896.L))+real(890147990608543744.L))- real(136556794013810688.L))/real(2033747955911435338575.L); _C4x[197] = (_n*(_n*(_n*(_n*(_n*(_n*(_n*(_n*(_n* ((real(544038581413347328.L)-real(126941576636137472.L)*_n)*_n- real(1643991086401585152.L))+real(3618678115535945728.L))- real(5834843432180252672.L))+real(6716211146048667648.L))- real(5007540727675092992.L))+real(1447244351603212288.L))+ real(1545584596293255168.L))-real(2323890249119301632.L))+ real(1396611502506508288.L))-real(348978473590849536.L))/ real(2033747955911435338575.L); _C4x[198] = (_n*(_n*(_n*(_n*(_n*(_n*(_n*(_n*((real(5266727356965322752.L)- real(2756463006190665728.L)*_n)*_n-real(6963465468539568128.L))+ real(5719909963527094272.L))-real(1423154789952258048.L))- real(2959880191536529408.L))+real(4297713798518669312.L))- real(2757397451341037568.L))+real(867914543982968832.L))- real(72281205021605888.L))-real(17265801541976064.L))/ real(2033747955911435338575.L); _C4x[199] = (_n*(_n*(_n*(_n*(_n*(_n*(_n*((real(444126663286980608.L)- real(966912165446418432.L)*_n)*_n+real(345651087915614208.L))- real(744445050127122432.L))+real(517074840215093248.L))- real(101080804666376192.L))-real(62394006286368768.L))+ real(15643139282829312.L))+real(22275238818480128.L))- real(9905955262562304.L))/real(290535422273062191225.L); _C4x[200] = (_n*(_n*(_n*(_n*(_n*(_n*(_n*(real(710218084304027648.L)*_n- real(709090024339013632.L))+real(203844154306854912.L))+ real(103854010636697600.L))-real(28133857492467712.L))- real(87328827277049856.L))+real(66685395475103744.L))- real(15096625990991872.L))+real(81976993775616.L))/ real(290535422273062191225.L); _C4x[201] = (_n*(_n*(_n*(_n*(_n*((real(99169604814766080.L)- real(53149231795404800.L)*_n)*_n+real(100260298685939712.L))- real(117838563713744896.L))+real(17846031391653888.L))+ real(11511359778848768.L))+real(3169950864769024.L))- real(3570017709326336.L))/real(290535422273062191225.L); _C4x[202] = (_n*(_n*(_n*(_n*(_n*(real(1171712691992002560.L)*_n- real(394057564356083712.L))-real(173652682823696384.L))- real(88988577844690944.L))+real(215927395247456256.L))- real(78039665264820224.L))+real(4471199881494528.L))/ real(2033747955911435338575.L); _C4x[203] = (_n*(_n*(_n*((-real(65920966719438848.L)*_n- real(348661929545302016.L))*_n+real(181886268409380864.L))+ real(17649366208610304.L))-real(1074337604960256.L))- real(10834137276612608.L))/real(2033747955911435338575.L); _C4x[204] = (_n*(_n*(_n*(real(11011782881574912.L)*_n+ real(4327721945530368.L))+real(102469660183625728.L))- real(53519316930265088.L))+real(4966146828926976.L))/ real(2033747955911435338575.L); _C4x[205] = (_n*(_n*(real(136016599216816128.L)*_n- real(9313406913871872.L))-real(4221217831649280.L))- real(5125342338744320.L))/real(2033747955911435338575.L); _C4x[206] = (_n*(real(668758276308992.L)*_n-real(477170401017856.L))+ real(59038150950912.L))/real(26412311115732926475.L); _C4x[207] = (-real(1208684118016.L)*_n-real(883938951168.L))/ real(713846246371160175.L); _C4x[208] = real(287309824.L)/real(148810974853275.L); _C4x[209] = (_n*(_n*(_n*(_n*(_n*(_n*(_n*(_n*(_n*(_n*(_n* (real(24678311657472.L)*_n-real(369489166204928.L))+ real(3157452874842112.L))-real(18268120204443648.L))+ real(77583127781834752.L))-real(253026791743029248.L))+ real(650640321624932352.L))-real(1337427327784583168.L))+ real(2202821481056960512.L))-real(2869464824008409088.L))+ real(2823917763309862912.L))-real(1780295981217087488.L))+ real(500708244717305856.L))/real(2227438237426810132725.L); _C4x[210] = (_n*(_n*(_n*(_n*(_n*(_n*(_n*(_n*(_n*(_n* (real(16378172836675584.L)*_n-real(86489256255553536.L))+ real(331081487162015744.L))-real(958553485744275456.L))+ real(2147642037233516544.L))-real(3759255191610720256.L))+ real(5128576652808290304.L))-real(5366271878665076736.L))+ real(4157204449212760064.L))-real(2233786281215655936.L))+ real(736674199124312064.L))-real(111268498826067968.L))/ real(2227438237426810132725.L); _C4x[211] = (_n*(_n*(_n*(_n*(_n*(_n*(_n*(_n*(_n* (real(809529512386625536.L)*_n-real(2078719438869233664.L))+ real(4020052597896380416.L))-real(5821051415941873664.L))+ real(6081044383317098496.L))-real(4051450217369698304.L))+ real(757849373588586496.L))+real(1691002138898989056.L))- real(2149173164502941696.L))+real(1237691866808320000.L))- real(305029160574910464.L))/real(2227438237426810132725.L); _C4x[212] = (_n*(_n*(_n*(_n*(_n*(_n*(_n*(_n*(real(802909617603477504.L)* _n-real(926237361266753536.L))+real(637684875184308224.L))- real(31906892208930816.L))-real(475861484333694976.L))+ real(562832578407563264.L))-real(329572016845750272.L))+ real(95466227731791872.L))-real(5760893052780544.L))- real(2333933234552832.L))/real(318205462489544304675.L); _C4x[213] = (_n*(_n*(_n*(_n*(_n*(_n*(_n*(real(194647213882736640.L)*_n+ real(485794295631052800.L))-real(701841324407521280.L))+ real(405140857159680000.L))-real(42948328433909760.L))- real(63702075858485248.L))+real(8627437810221056.L))+ real(22169150944182272.L))-real(8993358434795520.L))/ real(318205462489544304675.L); _C4x[214] = (_n*(_n*(_n*(_n*(_n*((real(598890563890053120.L)- real(3987743082702438400.L)*_n)*_n+real(802552761320210432.L))- real(31290010082738176.L))-real(620350774462906368.L))+ real(405987260408791040.L))-real(82481975532716032.L))- real(877636051009536.L))/real(2227438237426810132725.L); _C4x[215] = (_n*(_n*(_n*(_n*(_n*(real(60307593536471040.L)*_n+ real(119290583037509632.L))-real(100276895844663296.L))+ real(6844801282473984.L))+real(10874506180558848.L))+ real(3907787251777536.L))-real(3372178159960064.L))/ real(318205462489544304675.L); _C4x[216] = (_n*(_n*(_n*((-real(197900536584863744.L)*_n- real(180300611814686720.L))*_n-real(120607123473170432.L))+ real(202315081944399872.L))-real(65390123583275008.L))+ real(2978975313821696.L))/real(2227438237426810132725.L); _C4x[217] = (_n*(_n*((real(139684621842382848.L)- real(353014314325508096.L)*_n)*_n+real(25349864640479232.L))+ real(1911343804317696.L))-real(10650881074921472.L))/ real(2227438237426810132725.L); _C4x[218] = (_n*((real(101318852092100608.L)-real(8027178214096896.L)*_n)* _n-real(46764643938467840.L))+real(3772359809433600.L))/ real(2227438237426810132725.L); _C4x[219] = ((-real(152769050705920.L)*_n-real(418140072706048.L))*_n- real(751457599750144.L))/real(318205462489544304675.L); _C4x[220] = (real(14058862411776.L)-real(127643206811648.L)*_n)/ real(8600147634852548775.L); _C4x[221] = -real(15328083968.L)/real(12549725545959525.L); _C4x[222] = (_n*(_n*(_n*(_n*(_n*(_n*(_n*(_n*(_n* ((real(6238128780083200.L)-real(980277379727360.L)*_n)*_n- real(29319205266391040.L))+real(106615291877785600.L))- real(308569258223206400.L))+real(722933690694369280.L))- real(1382079114562764800.L))+real(2153133778476728320.L))- real(2691417223095910400.L))+real(2574399082961305600.L))- real(1596127431436009472.L))+real(445073995304271872.L))/ real(2421128518942184926875.L); _C4x[223] = (_n*(_n*(_n*(_n*(_n*(_n*(_n*(_n*((real(151302978047836160.L)- real(46340385223475200.L)*_n)*_n-real(387095521279344640.L))+ real(786492807006126080.L))-real(1273690921338142720.L))+ real(1633874904665292800.L))-real(1629398535063470080.L))+ real(1216988657399889920.L))-real(636578682332250112.L))+ real(205951926636904448.L))-real(30694758296846336.L))/ real(807042839647394975625.L); _C4x[224] = (_n*(_n*(_n*(_n*(_n*(_n*(_n*((real(613398131937116160.L)- real(353176552923463680.L)*_n)*_n-real(810035007203573760.L))+ real(775741322412687360.L))-real(461596370613043200.L))+ real(33697887934218240.L))+real(251349543319240704.L))- real(283518236668985344.L))+real(157807320410095616.L))- real(38474535745355776.L))/real(345875502706026418125.L); _C4x[225] = (_n*(_n*(_n*(_n*(_n*(_n*((real(3297227422469980160.L)- real(5830281188815667200.L)*_n)*_n+real(696358578704875520.L))- real(3494674226898534400.L))+real(3569076415464734720.L))- real(1933285643597643776.L))+real(517156926346231808.L))- real(18722902421536768.L))-real(15212358217498624.L))/ real(2421128518942184926875.L); _C4x[226] = (_n*(_n*(_n*(_n*(_n*(_n*(real(3963714898734612480.L)*_n- real(4459891610489978880.L))+real(2163224956643573760.L))- real(17999754952704000.L))-real(426158455900864512.L))+ real(19812801107197952.L))+real(152060329126264832.L))- real(57338888665956352.L))/real(2421128518942184926875.L); _C4x[227] = (_n*(_n*(_n*(_n*(_n*(real(1225959357284352.L)*_n+ real(110230452085719040.L))+real(15775238516113408.L))- real(87216323486023680.L))+real(50306500832264192.L))- real(9214092459900928.L))-real(257530269794304.L))/ real(345875502706026418125.L); _C4x[228] = (_n*(_n*(_n*(_n*(real(128353505483161600.L)*_n- real(82721016702304256.L))-real(1180765631021056.L))+ real(9787003046461440.L))+real(4450057961078784.L))- real(3175164028125184.L))/real(345875502706026418125.L); _C4x[229] = (_n*(_n*((-real(165619962893828096.L)*_n- real(145512823517085696.L))*_n+real(187715111434059776.L))- real(54870384553492480.L))+real(1889580991119360.L))/ real(2421128518942184926875.L); _C4x[230] = (_n*(_n*(real(102718373275631616.L)*_n+ real(29542937545146368.L))+real(4515145522872320.L))- real(10367884381388800.L))/real(2421128518942184926875.L); _C4x[231] = (_n*(real(14110835341262848.L)*_n-real(5835412345978880.L))+ real(407436955484160.L))/real(345875502706026418125.L); _C4x[232] = (-real(43854032011264.L)*_n-real(143292457025536.L))/ real(65435905917356349375.L); _C4x[233] = real(2902458368.L)/real(2407236357920625.L); _C4x[234] = (_n*(_n*(_n*(_n*(_n*(_n*(_n*(_n*(_n* (real(10693935051571200.L)*_n-real(42872957797662720.L))+ real(137779761811292160.L))-real(361671874754641920.L))+ real(784128938543677440.L))-real(1410056424574156800.L))+ real(2094940973653032960.L))-real(2527591826907463680.L))+ real(2359085705113632768.L))-real(1441663486458331136.L))+ real(399031857859002368.L))/real(2614818800457559721025.L); _C4x[235] = (_n*(_n*(_n*(_n*(_n*(_n*(_n*(_n*(real(583395287582638080.L)* _n-real(1348482775174348800.L))+real(2524611517895147520.L))- real(3827547376881500160.L))+real(4657607980823347200.L))- real(4456128626231869440.L))+real(3224387411622494208.L))- real(1647615413095235584.L))+real(524241267803029504.L))- real(77231972488839168.L))/real(2614818800457559721025.L); _C4x[236] = (_n*(_n*(_n*(_n*(_n*(_n*(_n*(real(4452734606172487680.L)*_n- real(5424760468222771200.L))+real(4796408446310154240.L))- real(2535397130030284800.L))-real(157731504909189120.L))+ real(1777430131548094464.L))-real(1832820339751518208.L))+ real(992313828341448704.L))-real(239887187275939840.L))/ real(2614818800457559721025.L); _C4x[237] = (_n*(_n*(_n*(_n*(_n*(_n*(real(2258184011450941440.L)*_n+ real(1381255217110056960.L))-real(3518150036095500288.L))+ real(3209311024414982144.L))-real(1623888280732827648.L))+ real(401705515572264960.L))-real(4048195118170112.L))- real(14042176816152576.L))/real(2614818800457559721025.L); _C4x[238] = (_n*(_n*(_n*(_n*((real(228921349727322112.L)- real(562937157774213120.L)*_n)*_n+real(24711961115623424.L))- real(55887751173636096.L))-real(1855106299461632.L))+ real(21069521020256256.L))-real(7486450123669504.L))/ real(373545542922508531575.L); _C4x[239] = (_n*(_n*(_n*(_n*(real(97291441461526528.L)*_n+ real(32123246891499520.L))-real(84057876275920896.L))+ real(43581287092453376.L))-real(7209389563838464.L))- real(339898250821632.L))/real(373545542922508531575.L); _C4x[240] = (_n*(_n*((-real(66288410624524288.L)*_n- real(6852777288400896.L))*_n+real(8491519040290816.L))+ real(4834380761530368.L))-real(2984972570853376.L))/ real(373545542922508531575.L); _C4x[241] = (_n*((real(172942003544260608.L)-real(163896815303786496.L)* _n)*_n-real(46114698784931840.L))+real(1089589582233600.L))/ real(2614818800457559721025.L); _C4x[242] = (_n*(real(31258382748876800.L)*_n+real(6726498337685504.L))- real(10025808311615488.L))/real(2614818800457559721025.L); _C4x[243] = (real(3398493536256.L)-real(56733296754688.L)*_n)/ real(4157104611220285725.L); _C4x[244] = -real(582454607872.L)/real(288579494587524525.L); _C4x[245] = (_n*(_n*(_n*(_n*(_n*(_n*(_n*((real(170026089043722240.L)- real(58554903114547200.L)*_n)*_n-real(411313112466063360.L))+ real(834996544104038400.L))-real(1424795690336256000.L))+ real(2031882549696921600.L))-real(2377302583145398272.L))+ real(2171856680898265088.L))-real(1310603169507573760.L))+ real(360415871614582784.L))/real(2808509081972934515175.L); _C4x[246] = (_n*(_n*(_n*(_n*(_n*(_n*((real(2647511501069352960.L)- real(1516151007703203840.L)*_n)*_n-real(3792386420417495040.L))+ real(4408366847754240000.L))-real(4067729748271300608.L))+ real(2862696747795218432.L))-real(1433061071832219648.L))+ real(449349658116882432.L))-real(65530158475378688.L))/ real(2808509081972934515175.L); _C4x[247] = (_n*(_n*(_n*(_n*(_n*((real(4198570027269488640.L)- real(5118317585309368320.L)*_n)*_n-real(1949569984921337856.L))- real(453045651958136832.L))+real(1762571242759520256.L))- real(1694325356766429184.L))+real(896675218674679808.L))- real(215313377847672832.L))/real(2808509081972934515175.L); _C4x[248] = (_n*(_n*(_n*(_n*(_n*(real(267933980987228160.L)*_n- real(492793387607392256.L))+real(410379639039459328.L))- real(195380945828708352.L))+real(44674453442920448.L))+ real(845227552145408.L))-real(1843374562738176.L))/ real(401215583138990645025.L); _C4x[249] = (_n*(_n*(_n*(_n*(real(163502924524158976.L)*_n+ real(42469753851215872.L))-real(49912274105663488.L))- real(5582142956371968.L))+real(20297667682762752.L))- real(6866083684286464.L))/real(401215583138990645025.L); _C4x[250] = (_n*(_n*(_n*(real(44734128792272896.L)*_n- real(79835715386474496.L))+real(37744834022211584.L))- real(5635422294114304.L))-real(388978276564992.L))/ real(401215583138990645025.L); _C4x[251] = (_n*((real(49953188366778368.L)-real(74946983894188032.L)*_n)* _n+real(35654638795489280.L))-real(19632924991160320.L))/ real(2808509081972934515175.L); _C4x[252] = (_n*(real(9324812086280192.L)*_n-real(2283208909520896.L))+ real(29408983252992.L))/real(165206416586643206775.L); _C4x[253] = (real(503944082096128.L)*_n-real(567753001926656.L))/ real(165206416586643206775.L); _C4x[254] = real(58116276224.L)/real(103318584481953225.L); _C4x[255] = (_n*(_n*(_n*(_n*(_n*(_n*(_n*(real(202480048417013760.L)*_n- real(456912214519971840.L))+real(876525472752599040.L))- real(1429117618618368000.L))+real(1966465843218874368.L))- real(2239586099221495808.L))+real(2007904778612375552.L))- real(1198265754978353152.L))+real(327650792376893440.L))/ real(3002199363488309309325.L); _C4x[256] = (_n*(_n*(_n*(_n*(_n*(_n*(real(911160217876561920.L)*_n- real(1242217413743738880.L))+real(1387196835138895872.L))- real(1239838929574690816.L))+real(851381763539206144.L))- real(418521095293894656.L))+real(129542243781443584.L))- real(18722902421536768.L))/real(1000733121162769769775.L); _C4x[257] = (_n*(_n*(_n*(_n*(_n*(real(520911200075120640.L)*_n- real(208391508259241984.L))-real(96144337569579008.L))+ real(246667260368781312.L))-real(224103568074866688.L))+ real(116374488232230912.L))-real(27795196838150144.L))/ real(428885623355472758475.L); _C4x[258] = (_n*(_n*(_n*((real(366345454624964608.L)- real(474676418299559936.L)*_n)*_n-real(165014498938191872.L))+ real(34798031190622208.L))+real(1805466812284928.L))- real(1690455104290816.L))/real(428885623355472758475.L); _C4x[259] = (_n*(_n*(_n*(real(373610477705494528.L)*_n- real(305608638465048576.L))-real(59551336466743296.L))+ real(136262682188709888.L))-real(44230139344584704.L))/ real(3002199363488309309325.L); _C4x[260] = (_n*((real(13465169149558784.L)-real(30897376252133376.L)*_n)* _n-real(1808696627691520.L))-real(171154983616512.L))/ real(176599962558135841725.L); _C4x[261] = (_n*(real(341673238331392.L)*_n+real(309100206358528.L))- real(155043755982848.L))/real(25228566079733691675.L); _C4x[262] = (real(3810709733376.L)-real(1924351507038208.L)*_n)/ real(176599962558135841725.L); _C4x[263] = -real(1476797661184.L)/real(478590684439392525.L); _C4x[264] = (_n*(_n*(_n*(_n*(_n*((real(909770194660884480.L)- real(498207487552389120.L)*_n)*_n-real(1425306638302052352.L))+ real(1900408851069403136.L))-real(2113385705068560384.L))+ real(1863415352856150016.L))-real(1101109072142270464.L))+ real(299566438744588288.L))/real(3195889645003684103475.L); _C4x[265] = (_n*(_n*(_n*(_n*((real(560302913537179648.L)- real(519868682663362560.L)*_n)*_n-real(486804237712359424.L))+ real(327052722979209216.L))-real(158186669168656384.L))+ real(48400398775484416.L))-real(6939763059720192.L))/ real(456555663571954871925.L); _C4x[266] = (_n*(_n*(_n*((-real(1048899801879412736.L)*_n- real(835131033220284416.L))*_n+real(1677679165723115520.L))- real(1455141654393520128.L))+real(743713444598906880.L))- real(176874986701586432.L))/real(3195889645003684103475.L); _C4x[267] = (_n*(_n*(_n*(real(134470959271772160.L)*_n- real(57546136495325184.L))+real(11146092968148992.L))+ real(1006087499153408.L))-real(637989474533376.L))/ real(187993508529628476675.L); _C4x[268] = (_n*((-real(15454666720542720.L)*_n-real(4436117101215744.L))* _n+real(7664351959842816.L))-real(2402175208652800.L))/ real(187993508529628476675.L); _C4x[269] = (_n*(real(1667752980905984.L)*_n-real(200351634423808.L))- real(25132001132544.L))/real(26856215504232639525.L); _C4x[270] = (real(314116728160256.L)*_n-real(145792664862720.L))/ real(26856215504232639525.L); _C4x[271] = -real(2147483648.L)/real(26814079094227425.L); _C4x[272] = (_n*(_n*(_n*(_n*(_n*(real(55044919340826624.L)*_n- real(83246945916682240.L))+real(107933971257491456.L))- real(117508759030333440.L))+real(102078315925340160.L))- real(59788727899127808.L))+real(16192780472680448.L))/ real(199387054501121111625.L); _C4x[273] = (_n*(_n*(_n*(_n*(real(217227076325867520.L)*_n- real(184013716268777472.L))+real(121227891471024128.L))- real(57787857254744064.L))+real(17499139872915456.L))- real(2491196995796992.L))/real(199387054501121111625.L); _C4x[274] = (_n*(_n*((real(95351263268438016.L)-real(56045268763672576.L)* _n)*_n-real(79560042910580736.L))+real(40119152072982528.L))- real(9509081215664128.L))/real(199387054501121111625.L); _C4x[275] = (_n*((real(8639412615249920.L)-real(48866969662783488.L)*_n)* _n+real(1175652807999488.L))-real(585000315518976.L))/ real(199387054501121111625.L); _C4x[276] = ((real(1044982722985984.L)-real(735504559505408.L)*_n)*_n- real(317834022354944.L))/real(28483864928731587375.L); _C4x[277] = (-real(8108898254848.L)*_n-real(1327144894464.L))/ real(1499150785722715125.L); _C4x[278] = -real(2407329169408.L)/real(499716928574238375.L); _C4x[279] = (_n*(_n*(_n*((real(104155911865499648.L)- real(82368195607920640.L)*_n)*_n-real(111257451310874624.L))+ real(95363529695035392.L))-real(55413942930898944.L))+ real(14947181974781952.L))/real(210780600472613746575.L); _C4x[280] = (_n*(_n*((real(36522202861928448.L)-real(56425837225836544.L)* _n)*_n-real(17182617963069440.L))+real(5154785388920832.L))- real(729130828038144.L))/real(70260200157537915525.L); _C4x[281] = (_n*(_n*(real(91775548375695360.L)*_n- real(74104609810939904.L))+real(36942628620599296.L))- real(8732613405573120.L))/real(210780600472613746575.L); _C4x[282] = (_n*(real(50027779063808.L)*_n+real(9620726743040.L))- real(4037269258240.L))/real(1584816544906870275.L); _C4x[283] = (real(52432960749568.L)*_n-real(15539191676928.L))/ real(1584816544906870275.L); _C4x[284] = -real(3058016714752.L)/real(3697905271449363975.L); _C4x[285] = (_n*(_n*(_n*(real(5288650929602560.L)*_n- real(5553083476082688.L))+real(4702611231997952.L))- real(2713044941537280.L))+real(729130828038144.L))/ real(11693376128637177975.L); _C4x[286] = (_n*(_n*(real(5231476324958208.L)*_n- real(2432119720640512.L))+real(723478651076608.L))- real(101739185307648.L))/real(11693376128637177975.L); _C4x[287] = ((real(256735965085696.L)-real(520068999938048.L)*_n)*_n- real(60559038873600.L))/real(1670482304091025425.L); _C4x[288] = (real(70368744177664.L)*_n-real(25975962206208.L))/ real(11693376128637177975.L); _C4x[289] = -real(33775622815744.L)/real(3897792042879059325.L); _C4x[290] = (_n*((real(4417837720403968.L)-real(5274357278441472.L)*_n)* _n-real(2532175278768128.L))+real(678261235384320.L))/ real(12293036442926264025.L); _C4x[291] = ((real(646512837132288.L)-real(2190227162529792.L)*_n)*_n- real(90434831384576.L))/real(12293036442926264025.L); _C4x[292] = (real(1666859627708416.L)*_n-real(392525651116032.L))/ real(12293036442926264025.L); _C4x[293] = -real(274877906944.L)/real(141299269458922575.L); _C4x[294] = (_n*(real(4160551999504384.L)*_n-real(2370547069485056.L))+ real(633043819692032.L))/real(12892696757215350075.L); _C4x[295] = (real(193514046488576.L)*_n-real(26938034880512.L))/ real(4297565585738450025.L); _C4x[296] = -real(364762982514688.L)/real(12892696757215350075.L); _C4x[297] = (real(53876069761024.L)-real(202310139510784.L)*_n)/ real(1226577915591312375.L); _C4x[298] = -real(2199023255552.L)/real(408859305197104125.L); _C4x[299] = real(2199023255552.L)/real(55699673461634475.L); break; case 27: _C4x[0] = (_n*(_n*(_n*(_n*(_n*(_n*(_n*(_n*(_n*(_n*(_n*(_n*(_n*(_n*(_n*(_n* (_n*(_n*(_n*(_n*(_n*(_n*(_n*(_n*(_n*(real(73279454609476440.L)*_n+ real(82454378140777500.L))+real(93228416884505760.L))+ real(105966020354191140.L))+real(121136129312638440.L))+ real(139348903999503660.L))+real(161407996910622000.L))+ real(188386190679968820.L))+real(221736856015657080.L))+ real(263461533222904380.L))+real(316367601760566720.L))+ real(384474516028466500.L))+real(473672603747070728.L))+ real(592826271149284172.L))+real(755690631355131472.L))+ real(984386480317868628.L))+real(1316024706307311000.L))+ real(1816114094704089180.L))+real(2607753571882794720.L))+ real(3941263921141042020.L))+real(6381093967561687080.L))+ real(11394810656360155500.L))+real(23701206165229123440.L))+ real(65178316954380089460.L))+real(391069901726280536760.L))- real(1368744656041981878660.L))+real(3421861640104954696650.L))/ real(5132792460157432044975.L); _C4x[1] = (_n*(_n*(_n*(_n*(_n*(_n*(_n*(_n*(_n*(_n*(_n*(_n*(_n*(_n*(_n*(_n* (_n*(_n*(_n*(_n*(_n*(_n*(_n*(_n*(real(399778803106800.L)*_n+ real(490891181489280.L))+real(608126372190480.L))+ real(760666432104480.L))+real(961579556063280.L))+ real(1229775214557120.L))+real(1593117891585360.L))+ real(2093502967889760.L))+real(2795347832603760.L))+ real(3800211432559360.L))+real(5272793362676112.L))+ real(7488894920902304.L))+real(10927673200908464.L))+ real(16457872189222464.L))+real(25735594256676304.L))+ real(42112790601833952.L))+real(72887522195481840.L))+ real(135467718019885440.L))+real(276579924290599440.L))+ real(643471660594455840.L))+real(1823169705017624880.L))+ real(7292678820070499520.L))+real(71103618495687370320.L))- real(521426535635040715680.L))+real(782139803452561073520.L))- real(342186164010495469665.L))/real(1710930820052477348325.L); _C4x[2] = (_n*(_n*(_n*(_n*(_n*(_n*(_n*(_n*(_n*(_n*(_n*(_n*(_n*(_n*(_n*(_n* (_n*(_n*(_n*(_n*(_n*(_n*(_n*(real(3010654119732480.L)*_n+ real(3737020406174880.L))+real(4684931252738880.L))+ real(5937683672717280.L))+real(7616518833678720.L))+ real(9901313347702560.L))+real(13064667278362560.L))+ real(17529633833726560.L))+real(23970564420759040.L))+ real(33495559246330272.L))+real(47990061329863744.L))+ real(70794590976220384.L))+real(108116040833184384.L))+ real(172162251234317344.L))+real(288670581732229312.L))+ real(516838793749780320.L))+real(1009136334235088640.L))+ real(2223928370826452640.L))+real(5892845733865016640.L))+ real(21663545906680013280.L))+real(189609649321832987520.L))- real(1214231023541738170080.L))+real(1611682019235580393920.L))- real(521426535635040715680.L))-real(97767475431570134190.L))/ real(5132792460157432044975.L); _C4x[3] = (_n*(_n*(_n*(_n*(_n*(_n*(_n*(_n*(_n*(_n*(_n*(_n*(_n*(_n*(_n*(_n* (_n*(_n*(_n*(_n*(_n*(_n*(real(5834686968581520.L)*_n+ real(7342506319890720.L))+real(9346630441971120.L))+ real(12050139702982080.L))+real(15757751910386640.L))+ real(20937371752569440.L))+real(28326438013541360.L))+ real(39122121170021120.L))+real(55335177348321808.L))+ real(80479042834045856.L))+real(120985612356919856.L))+ real(189305749805064256.L))+real(311247206213861456.L))+ real(545105804176518368.L))+real(1038176817264713840.L))+ real(2224419195891742080.L))+real(5709031746914121360.L))+ real(20241134867471216160.L))+real(169938607767695455920.L))- real(1032557524700570137920.L))+real(1223346872066826294480.L))- real(25524375870246748320.L))-real(545127741800269839120.L))+ real(179240371624545246015.L))/real(5132792460157432044975.L); _C4x[4] = (_n*(_n*(_n*(_n*(_n*(_n*(_n*(_n*(_n*(_n*(_n*(_n*(_n*(_n*(_n*(_n* (_n*(_n*(_n*(_n*(_n*(real(10416271523395200.L)*_n+ real(13342415562164160.L))+real(17326857288733440.L))+ real(22851141402707520.L))+real(30668416741216128.L))+ real(41991600996146368.L))+real(58840907215068160.L))+ real(84715573101198144.L))+real(125963455215380608.L))+ real(194757152849301952.L))+real(316082169787114752.L))+ real(545811376582201408.L))+real(1023666212081828224.L))+ real(2156956136917821120.L))+real(5435985763093605888.L))+ real(18891464102938314048.L))+real(155028078521800202880.L))- real(913978115527163749440.L))+real(1015014455216994973440.L))+ real(83651315877279259200.L))-real(510487517404934966400.L))+ real(123975539941198491840.L))+real(17775904623921842580.L))/ real(5132792460157432044975.L); _C4x[5] = (_n*(_n*(_n*(_n*(_n*(_n*(_n*(_n*(_n*(_n*(_n*(_n*(_n*(_n*(_n*(_n* (_n*(_n*(_n*(_n*(real(18231267003264720.L)*_n+ real(23904587445748800.L))+real(31884596097096624.L))+ real(43370573384292000.L))+real(60348781355665040.L))+ real(86239801248898304.L))+real(127212177678080880.L))+ real(195023427626713952.L))+real(313659097240880720.L))+ real(536421552566531520.L))+real(995757957106037552.L))+ real(2075259879007592480.L))+real(5168944224104058384.L))+ real(17734085058984013440.L))+real(143385953385667330800.L))- real(828617452277507486496.L))+real(882953799387816181200.L))+ real(120950094238754383680.L))-real(466940290549792626000.L))+ real(140491312563122858400.L))-real(52871921445511121520.L))+ real(33158899010008052505.L))/real(5132792460157432044975.L); _C4x[6] = (_n*(_n*(_n*(_n*(_n*(_n*(_n*(_n*(_n*(_n*(_n*(_n*(_n*(_n*(_n*(_n* (_n*(_n*(_n*(real(32446016535854208.L)*_n+real(43908972002315616.L))+ real(60769437236647744.L))+real(86349105620317984.L))+ real(126613785896045056.L))+real(192887647248436448.L))+ real(308175587050421440.L))+real(523383415441503904.L))+ real(964453238323320704.L))+real(1994494053544582240.L))+ real(4926805623857201728.L))+real(16750437377763075616.L))+ real(134002994693435368704.L))-real(763382129799919535136.L))+ real(790483780479975024576.L))+real(135380449323276977568.L))- real(430349527344997518720.L))+real(140288110986093030240.L))- real(66356603876740551360.L))+real(28098262512624571680.L))+ real(5697405328180077750.L))/real(5132792460157432044975.L); _C4x[7] = (_n*(_n*(_n*(_n*(_n*(_n*(_n*(_n*(_n*(_n*(_n*(_n*(_n*(_n*(_n*(_n* (_n*(_n*(real(60581247490791312.L)*_n+real(85700968320660192.L))+ real(125083452282385712.L))+real(189638943298080512.L))+ real(301463882573078736.L))+real(509301528552377120.L))+ real(933356274906807920.L))+real(1919028740233792320.L))+ real(4711082637503394320.L))+real(15907741259899155296.L))+ real(126241350431225126832.L))-real(711437311768779888768.L))+ real(721398349809359448912.L))+real(140642473143230204832.L))- real(400405811669391181584.L))+real(136057689748363346880.L))- real(69956560318105949040.L))+real(37739048445039752160.L))- real(16871375381726565840.L))+real(11642815358880935355.L))/ real(5132792460157432044975.L); _C4x[8] = (_n*(_n*(_n*(_n*(_n*(_n*(_n*(_n*(_n*(_n*(_n*(_n*(_n*(_n*(_n*(_n* (_n*(real(123091137335271168.L)*_n+real(185909365170469248.L))+ real(294370065853298688.L))+real(495278753117779584.L))+ real(903772023704408320.L))+real(1849814223385125760.L))+ real(4519165127766428160.L))+real(15177708078766907520.L))+ real(119685421163108500224.L))-real(668811824524762837632.L))+ real(667389543532136291328.L))+real(141738442710144862848.L))- real(375631505655450815232.L))+real(130898865565471045504.L))- real(70189293203230691840.L))+real(41400112607033685120.L))- real(23806978966798997760.L))+real(10972885159610720640.L))+ real(2452530144985009320.L))/real(5132792460157432044975.L); _C4x[9] = (_n*(_n*(_n*(_n*(_n*(_n*(_n*(_n*(_n*(_n*(_n*(_n*(_n*(_n*(_n*(_n* (real(287296256497127376.L)*_n+real(481781561695060224.L))+ real(876111306741185072.L))+real(1786666873114538720.L))+ real(4347768240400601744.L))+real(14538304614829924544.L))+ real(114053530976537441520.L))-real(633018560435612359008.L))+ real(623733388826288176464.L))+real(140807256201692766336.L))- real(354799216875392825424.L))+real(125744307902662404704.L))- real(69120074002750705648.L))+real(42643073489038729280.L))- real(26939637224337829264.L))+real(16082079594234617376.L))- real(7556006467598284080.L))+real(5397894670370487285.L))/ real(5132792460157432044975.L); _C4x[10] = (_n*(_n*(_n*(_n*(_n*(_n*(_n*(_n*(_n*(_n*(_n*(_n*(_n*(_n*(_n* (real(850423688931780096.L)*_n+real(1729050899529515040.L))+ real(4193853449435620672.L))+real(13972680203386384480.L))+ real(109147763661946289280.L))-real(602409851375980837728.L))+ real(587531520700696904640.L))+real(138863100422159045856.L))- real(337007520476615896320.L))+real(120888666411293817120.L))- real(67537727934498569664.L))+real(42785332136725383520.L))- real(28348158278177478272.L))+real(18661084357293252000.L))- real(11413646068240637760.L))+real(5432549987636579808.L))+ real(1266175285613852250.L))/real(5132792460157432044975.L); _C4x[11] = (_n*(_n*(_n*(_n*(_n*(_n*(_n*(_n*(_n*(_n*(_n*(_n*(_n*(_n* (real(4054829827005054864.L)*_n+real(13467892269760445088.L))+ real(104824666763974068912.L))-real(575845191515422116288.L))+ real(556899166135656231888.L))+real(136422062004077328864.L))- real(321602871754492408080.L))+real(116410487637199935872.L))- real(65778105968316207088.L))+real(42394659574572214560.L))- real(28891460150097908944.L))+real(19991458071409802432.L))- real(13522827127755041712.L))+real(8411102150509586528.L))- real(4040488298298179728.L))+real(2934854733674967831.L))/ real(5132792460157432044975.L); _C4x[12] = (_n*(_n*(_n*(_n*(_n*(_n*(_n*(_n*(_n*(_n*(_n*(_n*(_n* (real(100977470540922059136.L)*_n-real(552506769358398638784.L))+ real(530553108888378191616.L))+real(133759686428515283136.L))- real(308105931614194826112.L))+real(112310532951172494400.L))- real(63993042734748055040.L))+real(41741405076008505280.L))- real(28972263810146742400.L))+real(20649906489917707072.L))- real(14709809329168653056.L))+real(10142445037425331904.L))- real(6385925063862920576.L))+real(3088594014177415744.L))+ real(735873569344070332.L))/real(5132792460157432044975.L); _C4x[13] = (_n*(_n*(_n*(_n*(_n*(_n*(_n*(_n*(_n*(_n*(_n*(_n* (real(507586637531726245584.L)*_n+real(131027601388705205184.L))- real(296158881021639629136.L))+real(108562194936860519712.L))- real(62252486370236089200.L))+real(40963285772357325440.L))- real(28796650772719649680.L))+real(20925058591681759200.L))- real(15372862066900618672.L))+real(11179428716794485056.L))- real(7817555297389450704.L))+real(4967437895337366176.L))- real(2415015777400770544.L))+real(1770586155991722993.L))/ real(5132792460157432044975.L); _C4x[14] = (_n*(_n*(_n*(_n*(_n*(_n*(_n*(_n*(_n*(_n* ((real(105131003030739340512.L)-real(285489665610381827712.L)*_n)*_n- real(60587621581596867264.L))+real(40133678134241534880.L))- real(28476947980257066752.L))+real(20972854850184320608.L))- real(15722184934696215360.L))+real(11804137255998893344.L))- real(8717007707473960832.L))+real(6161277795330289632.L))- real(3942826758559951808.L))+real(1924645994671892128.L))+ real(464563515213473214.L))/real(5132792460157432044975.L); _C4x[15] = (_n*(_n*(_n*(_n*(_n*(_n*(_n*(_n*(_n* ((real(39292728267222564960.L)-real(59010550425783810672.L)*_n)*_n- real(28077285046087750096.L))+real(20882512873244904320.L))- real(15876440296195324720.L))+real(12172235956142360224.L))- real(9288596283532735120.L))+real(6940644195154884032.L))- real(4946927615409878000.L))+real(3183482554365582560.L))- real(1558989237564570448.L))+real(1149578802925114835.L))/ real(5132792460157432044975.L); _C4x[16] = (_n*(_n*(_n*(_n*(_n*(_n*(_n*(_n*((real(20707365067708766976.L)- real(27635532225080719872.L)*_n)*_n-real(15906168596965246976.L))+ real(12374900376216573184.L))-real(9649457376919524864.L))+ real(7456478702283321088.L))-real(5623540589178659840.L))+ real(4034991464601479424.L))-real(2608348197726204416.L))+ real(1280671252772504320.L))+real(311715137028793680.L))/ real(5132792460157432044975.L); _C4x[17] = (_n*(_n*(_n*(_n*(_n*(_n*(_n*((real(12468085246860903552.L)- real(15855041516975600688.L)*_n)*_n-real(9870408910275714768.L))+ real(7798239389874038112.L))-real(6086151303845690224.L))+ real(4624371155161862720.L))-real(3336083532426612240.L))+ real(2164508278641035040.L))-real(1065027524222032560.L))+ real(788333428562306445.L))/real(5132792460157432044975.L); _C4x[18] = (_n*(_n*(_n*(_n*(_n*(_n*((real(8021530412008264608.L)- real(9996115166702637312.L)*_n)*_n-real(6404012293728389312.L))+ real(5038291127544443104.L))-real(3851544485581842560.L))+ real(2790977419500528160.L))-real(1816369286848280640.L))+ real(895321435934187360.L))+real(219162511712069730.L))/ real(5132792460157432044975.L); _C4x[19] = (_n*(_n*(_n*(_n*(_n*((real(5331029878955287584.L)- real(6621237790858860144.L)*_n)*_n-real(4221855364828848208.L))+ real(3243725203726642880.L))-real(2359292599459802160.L))+ real(1539363010469286240.L))-real(759917234286216720.L))+ real(563984419881928815.L))/real(5132792460157432044975.L); _C4x[20] = (_n*(_n*(_n*(_n*((real(51817378494884800.L)- real(65073071800845696.L)*_n)*_n-real(39980888638081280.L))+ real(29171170832616000.L))-real(19074564067126400.L))+ real(9428276644937920.L))+real(2317260934180500.L))/ real(74388296524020754275.L); _C4x[21] = (_n*(_n*(_n*((real(361041904727488.L)-real(466255241229968.L)* _n)*_n-real(264131842052080.L))+real(173031986380000.L))- real(85620432375632.L))+real(63666780808939.L))/ real(783034700252850045.L); _C4x[22] = (_n*(_n*((real(5855833375392.L)-real(7985963133568.L)*_n)*_n- real(3842271070528.L))+real(1903039177952.L))+real(469120197546.L))/ real(20033145835167465.L); _C4x[23] = (_n*((real(3356542766368.L)-real(5108468470032.L)*_n)*_n- real(1663823690672.L))+real(1238988173709.L))/real(20033145835167465.L); _C4x[24] = ((real(15209307520.L)-real(30660788480.L)*_n)*_n+ real(3757742824.L))/real(208244759201325.L); _C4x[25] = (real(247203.L)-real(331600.L)*_n)/real(5135632425.L); _C4x[26] = real(4654.L)/real(327806325.L); _C4x[27] = (_n*(_n*(_n*(_n*(_n*(_n*(_n*(_n*(_n*(_n*(_n*(_n*(_n*(_n*(_n* (_n*(_n*(_n*(_n*(_n*(_n*(_n*(_n*((-real(399778803106800.L)*_n- real(490891181489280.L))*_n-real(608126372190480.L))- real(760666432104480.L))-real(961579556063280.L))- real(1229775214557120.L))-real(1593117891585360.L))- real(2093502967889760.L))-real(2795347832603760.L))- real(3800211432559360.L))-real(5272793362676112.L))- real(7488894920902304.L))-real(10927673200908464.L))- real(16457872189222464.L))-real(25735594256676304.L))- real(42112790601833952.L))-real(72887522195481840.L))- real(135467718019885440.L))-real(276579924290599440.L))- real(643471660594455840.L))-real(1823169705017624880.L))- real(7292678820070499520.L))-real(71103618495687370320.L))+ real(521426535635040715680.L))-real(782139803452561073520.L))+ real(342186164010495469665.L))/real(15398377380472296134925.L); _C4x[28] = (_n*(_n*(_n*(_n*(_n*(_n*(_n*(_n*(_n*(_n*(_n*(_n*(_n*(_n*(_n* (_n*(_n*(_n*(_n*(_n*(_n*(_n*((-real(1014435878376960.L)*_n- real(1260383830896960.L))*_n-real(1581799194264960.L))- real(2007262280295360.L))-real(2578484202282240.L))- real(3357538782265920.L))-real(4438830671291520.L))- real(5969469084259520.L))-real(8185070777820160.L))- real(11474986260489024.L))-real(16506135744029568.L))- real(24469622287201728.L))-real(37600148227369728.L))- real(60345531360482368.L))-real(102222500264280704.L))- real(185531874679408320.L))-real(369100449097658880.L))- real(835384261122626880.L))-real(2302951206338052480.L))- real(9008603248322381760.L))-real(87512145840845994240.L))+ real(678219130266556455360.L))-real(1327267545252830912640.L))+ real(1042853071270081431360.L))-real(293302426294710402570.L))/ real(15398377380472296134925.L); _C4x[29] = (_n*(_n*(_n*(_n*(_n*(_n*(_n*(_n*(_n*(_n*(_n*(_n*(_n*(_n*(_n* (_n*(_n*(_n*(_n*(_n*(_n*((-real(2006004018678960.L)*_n- real(2531531290838880.L))*_n-real(3232904796095760.L))- real(4183476288317760.L))-real(5494125807150960.L))- real(7336556140196640.L))-real(9984009274634192.L))- real(13885046933709056.L))-real(19802882710460976.L))- real(29091401168482016.L))-real(44273531023663760.L))- real(70337033549764800.L))-real(117883423234589936.L))- real(211595249813019296.L))-real(416170572858916176.L))- real(930996983841009792.L))-real(2535847699817891760.L))- real(9787542626936723040.L))-real(93297746297945268240.L))+ real(695378374549075277760.L))-real(1219700532656791044720.L))+ real(659987433216380206560.L))+real(118506030826145617200.L))- real(146651213147355201285.L))/real(15398377380472296134925.L); _C4x[30] = (_n*(_n*(_n*(_n*(_n*(_n*(_n*(_n*(_n*(_n*(_n*(_n*(_n*(_n*(_n* (_n*(_n*(_n*(_n*(_n*((-real(3694849737457920.L)*_n- real(4760445953139840.L))*_n-real(6223414389050880.L))- real(8270905947803520.L))-real(11199684641225472.L))- real(15495183203099264.L))-real(21980385380653056.L))- real(32109940511714688.L))-real(48584682254644480.L))- real(76724217558352000.L))-real(127791410547171840.L))- real(227897885153635200.L))-real(445157114268462848.L))- real(988244111456009856.L))-real(2666947074756701184.L))- real(10162434811804797312.L))-real(94862742018620647680.L))+ real(678738423185632682880.L))-real(1077058670070102504960.L))+ real(352622470005761800320.L))+real(437560729204229971200.L))- real(335463225723242977920.L))+real(53327713871765527740.L))/ real(15398377380472296134925.L); _C4x[31] = (_n*(_n*(_n*(_n*(_n*(_n*(_n*(_n*(_n*(_n*(_n*(_n*(_n*(_n*(_n* (_n*(_n*(_n*(_n*((-real(6758223524849520.L)*_n- real(8951762407416000.L))*_n-real(12080032395751440.L))- real(16654081319863776.L))-real(23538267028562608.L))- real(34256592592217856.L))-real(51631211001291600.L))- real(81204668825905184.L))-real(134673615703414256.L))- real(239051700682648896.L))-real(464477149929807504.L))- real(1024564110749653600.L))-real(2741912113680146736.L))- real(10322910913151292288.L))-real(94526968591456141776.L))+ real(653353441633928135520.L))-real(959029230382352934000.L))+ real(185884287076286137920.L))+real(482078808038514823920.L))- real(267040739146699173600.L))+real(12762187935123374160.L))+ real(1709221598454023325.L))/real(15398377380472296134925.L); _C4x[32] = (_n*(_n*(_n*(_n*(_n*(_n*(_n*(_n*(_n*(_n*(_n*(_n*(_n*(_n*(_n* (_n*(_n*(_n*((-real(12751056151078656.L)*_n-real(17533868589458112.L))* _n-real(24715750057252224.L))-real(35870691003658816.L))- real(53906685863554048.L))-real(84519828513011136.L))- real(139693798830834304.L))-real(247003231694357824.L))- real(477720846144401664.L))-real(1047700748190841024.L))- real(2782278335044276096.L))-real(10360454935887325248.L))- real(93289534450643252736.L))+real(626705204994185679936.L))- real(865741202420700396672.L))+real(90674826231545029824.L))+ real(468062562061576930560.L))-real(216274211818747104960.L))+ real(37434246079495009920.L))-real(49332827312241614400.L))+ real(17092215984540233250.L))/real(15398377380472296134925.L); _C4x[33] = (_n*(_n*(_n*(_n*(_n*(_n*(_n*(_n*(_n*(_n*(_n*(_n*(_n*(_n*(_n* (_n*(_n*((-real(25638930531053104.L)*_n-real(37128128339304864.L))*_n- real(55663588474380816.L))-real(87046292351612160.L))- real(143444512063664112.L))-real(252759152543049824.L))- real(486800706497340368.L))-real(1061929459586025408.L))- real(2800157459335514544.L))-real(10324718712925331232.L))- real(91625405388394081680.L))+real(601213445859944269184.L))- real(791473378609810070384.L))+real(32826729021604125216.L))+ real(441980298061286695088.L))-real(184694527118024535360.L))+ real(51814193429812378320.L))-real(56952886450860170400.L))+ real(9928654833207437040.L))+real(2339287599452761335.L))/ real(15398377380472296134925.L); _C4x[34] = (_n*(_n*(_n*(_n*(_n*(_n*(_n*(_n*(_n*(_n*(_n*(_n*(_n*(_n*(_n* (_n*((-real(57046296213407232.L)*_n-real(89000869775895808.L))*_n- real(146271938549788672.L))-real(256920540724900608.L))- real(492886125248387584.L))-real(1069902339522005248.L))- real(2802976713842500608.L))-real(10244487346428907264.L))- real(89775277405020057088.L))+real(577605702227470818048.L))- real(731311030133882820608.L))-real(4148598606469311232.L))+ real(415368300235423858176.L))-real(164013011590307315968.L))+ real(59044553827426628608.L))-real(56182585593394923264.L))+ real(16986473859536939520.L))-real(15623943478293454080.L))+ real(7357590434955027960.L))/real(15398377380472296134925.L); _C4x[35] = (_n*(_n*(_n*(_n*(_n*(_n*(_n*(_n*(_n*(_n*(_n*(_n*(_n*(_n*(_n*((- real(148399691433251568.L)*_n-real(259882287247989504.L))*_n- real(496754089097984784.L))-real(1073376583625991584.L))- real(2795528583059676464.L))-real(10137207344944809024.L))- real(87866094385206832464.L))+real(555999886254114444576.L))- real(681678262024533761904.L))-real(28728648941949226368.L))+ real(391109900174625314928.L))-real(149503728632275001376.L))+ real(62290320091516438096.L))-real(53730425823875847872.L))+ real(21505647483176400432.L))-real(21206882265934718304.L))+ real(5640316237773599760.L))+real(1380430157843259705.L))/ real(15398377380472296134925.L); _C4x[36] = (_n*(_n*(_n*(_n*(_n*(_n*(_n*(_n*(_n*(_n*(_n*(_n*(_n*(_n*((- real(498948237066515456.L)*_n-real(1073565488192531520.L))*_n- real(2781014060142274944.L))-real(10013798995973013696.L))- real(85966112208383936256.L))+real(536293135987683126976.L))- real(640040253929056597120.L))-real(45564861579727766976.L))+ real(369686663998979106304.L))-real(138692526230758032960.L))+ real(63379162503585194112.L))-real(51158478895949593280.L))+ real(24263021951332700928.L))-real(23210670517478181696.L))+ real(9202250097414575488.L))-real(6903945368361263040.L))+ real(3798525856841556750.L))/real(15398377380472296134925.L); _C4x[37] = (_n*(_n*(_n*(_n*(_n*(_n*(_n*(_n*(_n*(_n*(_n*(_n*(_n*((- real(2761626385176977328.L)*_n-real(9881260996472837600.L))*_n- real(84111917256741155600.L))+real(518311218894002667840.L))- real(604588019488504762480.L))-real(57357654343871872928.L))+ real(350903361606398831664.L))-real(130238250521809646720.L))+ real(63300432301411706576.L))-real(48821941125892192608.L))+ real(25876273219287237488.L))-real(23791034304355461696.L))+ real(11513582910647117328.L))-real(10233891042976555808.L))+ real(3349177554673513136.L))+real(828196741572794643.L))/ real(15398377380472296134925.L); _C4x[38] = (_n*(_n*(_n*(_n*(_n*(_n*(_n*(_n*(_n*(_n*(_n*(_n* ((real(501867522242416287360.L)-real(82322441463711096576.L)*_n)*_n- real(574009531663154112000.L))-real(65751256074750550656.L))+ real(334406783737167262464.L))-real(123373409303992638336.L))+ real(62591973009277795328.L))-real(46768009703633927296.L))+ real(26757925064930395392.L))-real(23765605754036024704.L))+ real(13021745856880893440.L))-real(11917013761327527552.L))+ real(5503443216797964032.L))-real(3668992961381953408.L))+ real(2207620708032210996.L))/real(15398377380472296134925.L); _C4x[39] = (_n*(_n*(_n*(_n*(_n*(_n*(_n*(_n*(_n*(_n*(_n*((- real(547335486519270798960.L)*_n-real(71787788534944699200.L))*_n+ real(319844608645066204656.L))-real(117634125078523469664.L))+ real(61551641679147513936.L))-real(44967966517656262528.L))+ real(27171548261407882416.L))-real(23474245117621321632.L))+ real(13999335147224018704.L))-real(12775521779969547200.L))+ real(6944494780126104432.L))-real(5744890749184077792.L))+ real(2117893577501298128.L))+real(525937992303903669.L))/ real(15398377380472296134925.L); _C4x[40] = (_n*(_n*(_n*(_n*(_n*(_n*(_n*(_n*(_n*(_n*(_n* (real(306909278919632597760.L)*_n-real(112725550038496105920.L))+ real(60347491278611545728.L))-real(43380359888864249664.L))+ real(27284522191876579840.L))-real(23068087317028076736.L))+ real(14619978405235959168.L))-real(13194527614639271488.L))+ real(7927496352706171136.L))-real(6968541588706235328.L))+ real(3536404313637514368.L))-real(2190213729943889216.L))+ real(1393690545640419642.L))/real(15398377380472296134925.L); _C4x[41] = (_n*(_n*(_n*(_n*(_n*(_n*(_n*(_n*(_n*(_n* (real(59075629315009097424.L)*_n-real(41967513576903298080.L))+ real(27203908876725102576.L))-real(22617688148220796544.L))+ real(14997030855363143440.L))-real(13367905150885347552.L))+ real(8603090262429663280.L))-real(7706930270557921088.L))+ real(4519959076546905936.L))-real(3559703598333699488.L))+ real(1414548101738139760.L))+real(352029042164525775.L))/ real(15398377380472296134925.L); _C4x[42] = (_n*(_n*(_n*(_n*(_n*(_n*(_n*(_n*(_n* (real(26998986839438173184.L)*_n-real(22157016743179454976.L))+ real(15205913595735953408.L))-real(13399089407926343168.L))+ real(9066227245074349056.L))-real(8155135004329918976.L))+ real(5216456602051602432.L))-real(4444683870536781312.L))+ real(2400536816709161984.L))-real(1415914071401822720.L))+ real(935145411086381040.L))/real(15398377380472296134925.L); _C4x[43] = (_n*(_n*(_n*(_n*(_n*(_n*(_n*(_n*(real(15297648024600690192.L)* _n-real(13345966126725050752.L))+real(9379373988588606192.L))- real(8422852959343692576.L))+real(5715596912699526608.L))- real(5029503507151988928.L))+real(3107774173545323184.L))- real(2364352445609926240.L))+real(988074260868900240.L))+ real(246200508532148625.L))/real(15398377380472296134925.L); _C4x[44] = (_n*(_n*(_n*(_n*(_n*(_n*(_n*(real(9584901514820353536.L)*_n- real(8574694453100341056.L))+real(6074974826240713344.L))- real(5420992938534190528.L))+real(3624977888547249920.L))- real(3016720049954103360.L))+real(1701300060800887680.L))- real(970006992277821120.L))+real(657487535136209190.L))/ real(15398377380472296134925.L); _C4x[45] = (_n*(_n*(_n*(_n*(_n*(_n*(real(6333140675850554704.L)*_n- real(5683913893686193248.L))+real(4008028819571478256.L))- real(3474234923548732480.L))+real(2228411054356194960.L))- real(1653416351874823200.L))+real(715909591514683440.L))+ real(178524847392378795.L))/real(15398377380472296134925.L); _C4x[46] = (_n*(_n*(_n*(_n*(_n*(real(37337498257965312.L)*_n- real(33038238862440320.L))+real(22823087545861632.L))- real(18656042377348224.L))+real(10854829102639872.L))- real(6039124966680960.L))+real(4171069681524900.L))/ real(133898933743237357695.L); _C4x[47] = (_n*(_n*(_n*(_n*(real(195075922055654512.L)*_n- real(167040749263423040.L))+real(110137034045154576.L))- real(80209044218286368.L))+real(35640909297543088.L))+ real(8892416283104739.L))/real(1026558492031486408995.L); _C4x[48] = (_n*(_n*(_n*(real(696434041088.L)*_n-real(561462728640.L))+ real(334369174656.L))-real(182661157184.L))+real(127941872058.L))/ real(5463585227772945.L); _C4x[49] = (_n*(_n*(real(24560261753712.L)*_n-real(17633845750752.L))+ real(7989870443984.L))+real(1994225640693.L))/ real(300497187527511975.L); _C4x[50] = (_n*(real(29556996608.L)*_n-real(15922652416.L))+ real(11273228472.L))/real(624734277603975.L); _C4x[51] = (real(22113584.L)*_n+real(5520955.L))/real(1063075911975.L); _C4x[52] = real(4654.L)/real(327806325.L); _C4x[53] = (_n*(_n*(_n*(_n*(_n*(_n*(_n*(_n*(_n*(_n*(_n*(_n*(_n*(_n*(_n* (_n*(_n*(_n*(_n*(_n*(_n*(_n*(_n*(real(6530703079680.L)*_n+ real(8826217303200.L))+real(12093266011200.L))+real(16820633633760.L))+ real(23786754633600.L))+real(34260599819040.L))+real(50364947102400.L))+ real(75754683810400.L))+real(116929582540288.L))+ real(185879907027360.L))+real(305669180444992.L))+ real(522855177076960.L))+real(936880769784960.L))+ real(1774868569425952.L))+real(3599383812122560.L))+ real(7951366057688928.L))+real(19633002611577600.L))+ real(56444882508285600.L))+real(203201577029828160.L))+ real(1072452767657426400.L))+real(14585357640140999040.L))- real(164085273451586239200.L))+real(474024123304582468800.L))- real(521426535635040715680.L))+real(195534950863140268380.L))/ real(25663962300787160224875.L); _C4x[54] = (_n*(_n*(_n*(_n*(_n*(_n*(_n*(_n*(_n*(_n*(_n*(_n*(_n*(_n*(_n* (_n*(_n*(_n*(_n*(_n*(_n*(_n*(real(37005054560640.L)*_n+ real(50928622145280.L))+real(71200352945280.L))+ real(101285535859200.L))+real(146895777947520.L))+ real(217709219902720.L))+real(330642768779904.L))+ real(516325325236224.L))+real(832487788737920.L))+ real(1393120987405056.L))+real(2435890001440896.L))+ real(4489456941272576.L))+real(8825897303051136.L))+ real(18820602503512320.L))+real(44632359270319744.L))+ real(122509936296244224.L))+real(418182955626602880.L))+ real(2077171676304910080.L))+real(26416205013877660800.L))- real(277979757376804922880.L))+real(773023954927472949120.L))- real(962633604249305936640.L))+real(568828947965498962560.L))- real(130356633908760178920.L))/real(25663962300787160224875.L); _C4x[55] = (_n*(_n*(_n*(_n*(_n*(_n*(_n*(_n*(_n*(_n*(_n*(_n*(_n*(_n*(_n* (_n*(_n*(_n*(_n*(_n*(_n*(real(136917721288320.L)*_n+ real(192816953576640.L))+real(276619716268800.L))+ real(405173516400960.L))+real(607547051841408.L))+ real(935644644394432.L))+real(1485852629588992.L))+ real(2445470099042880.L))+real(4198348870000768.L))+ real(7582646940057280.L))+real(14575156777493760.L))+ real(30308566074649408.L))+real(69870049079044480.L))+ real(185721434704623552.L))+real(610979041272294912.L))+ real(2906273376591832128.L))+real(35062579364016435840.L))- real(344200893535525588800.L))+real(858955644058086946560.L))- real(848095648663492797120.L))+real(189609649321832987520.L))+ real(211487685782044486080.L))-real(106655427743531055480.L))/ real(25663962300787160224875.L); _C4x[56] = (_n*(_n*(_n*(_n*(_n*(_n*(_n*(_n*(_n*(_n*(_n*(_n*(_n*(_n*(_n* (_n*(_n*(_n*(_n*(_n*(real(427935160909440.L)*_n+ real(620824675084800.L))+real(921346670048640.L))+ real(1403181140646144.L))+real(2201599592893568.L))+ real(3576287011899392.L))+real(6052576443204480.L))+ real(10761701612549888.L))+real(20332002745244288.L))+ real(41478113346528768.L))+real(93590967503212928.L))+ real(242792615091918080.L))+real(776518666518145152.L))+ real(3570985915011744768.L))+real(41275246710424051584.L))- real(381583112158099918080.L))+real(860701017990256195200.L))- real(658734356824696266240.L))-real(126662316348592886400.L))+ real(430697031491222442240.L))-real(189609649321832987520.L))+ real(19143281902685061240.L))/real(25663962300787160224875.L); _C4x[57] = (_n*(_n*(_n*(_n*(_n*(_n*(_n*(_n*(_n*(_n*(_n*(_n*(_n*(_n*(_n* (_n*(_n*(_n*(_n*(real(1254039517896320.L)*_n+real(1892426879208800.L))+ real(2940069405374528.L))+real(4725228003633952.L))+ real(7905160865362432.L))+real(13879669938190560.L))+ real(25862709380426688.L))+real(51959829971310240.L))+ real(115250028146574720.L))+real(293202530709087328.L))+ real(916621360100810560.L))+real(4100426592265781792.L))+ real(45739130956036888832.L))-real(402015260344313016352.L))+ real(831740048621207884480.L))-real(498460830830147818080.L))- real(282497311277728928640.L))+real(413391030514182077280.L))- real(103113511366136134080.L))-real(6220226052413073120.L))- real(4102131836289655980.L))/real(25663962300787160224875.L); _C4x[58] = (_n*(_n*(_n*(_n*(_n*(_n*(_n*(_n*(_n*(_n*(_n*(_n*(_n*(_n*(_n* (_n*(_n*(_n*(real(3677378369773824.L)*_n+real(5857872785118720.L))+ real(9706237783157504.L))+real(16864643566088192.L))+ real(31066728260547840.L))+real(61628645158373888.L))+ real(134766110703746816.L))+real(337328091894506496.L))+ real(1034664711080446208.L))+real(4522222801254448640.L))+ real(48953052755595055872.L))-real(412309002344605771776.L))+ real(792973092558522113280.L))-real(376192864521090387456.L))- real(351254049723734841600.L))+real(353711316330599894016.L))- real(58463155176755777280.L))+real(29441650716321768960.L))- real(42356239834217514240.L))+real(9330339078619609680.L))/ real(25663962300787160224875.L); _C4x[59] = (_n*(_n*(_n*(_n*(_n*(_n*(_n*(_n*(_n*(_n*(_n*(_n*(_n*(_n*(_n* (_n*(_n*(real(11430048901807872.L)*_n+real(19683848342623104.L))+ real(35908345936361472.L))+real(70468600146107520.L))+ real(152240385184346368.L))+real(375815924317300096.L))+ real(1134064880707938816.L))+real(4858982781330910848.L))+ real(51265280303341413120.L))-real(416402813425188014208.L))+ real(752695342585300982784.L))-real(284623133490827902848.L))- real(377248702505408686848.L))+real(298083387884318673280.L))- real(43274802583071191552.L))+real(52176275080476398208.L))- real(41523800523486624000.L))+real(1761080334258510720.L))+ real(412047642310484880.L))/real(25663962300787160224875.L); _C4x[60] = (_n*(_n*(_n*(_n*(_n*(_n*(_n*(_n*(_n*(_n*(_n*(_n*(_n*(_n*(_n* (_n*(real(40384078766338816.L)*_n+real(78512715059802112.L))+ real(167840903915859200.L))+real(409353288974514688.L))+ real(1217848935863822080.L))+real(5128432728209638400.L))+ real(52918606905870754048.L))-real(416637515430115750400.L))+ real(714155279093130615552.L))-real(215707780561903888384.L))- real(382444354692447152896.L))+real(254008418220830941696.L))- real(40335227135275331840.L))+real(62072531510207540224.L))- real(34733922900298626816.L))+real(9576193353823090176.L))- real(14744384961294777600.L))+real(4769592571950133200.L))/ real(25663962300787160224875.L); _C4x[61] = (_n*(_n*(_n*(_n*(_n*(_n*(_n*(_n*(_n*(_n*(_n*(_n*(_n*(_n*(_n* (real(181752888575196672.L)*_n+real(438584148172930080.L))+ real(1288575418374434368.L))+real(5344307596026407008.L))+ real(54084117907328089728.L))-real(414445194331230149472.L))+ real(678502773486304562880.L))-real(163212860882231078688.L))- real(377593319137055965440.L))+real(220358893051414809888.L))- real(41646095348463931584.L))+real(64716780628235286880.L))- real(29479712826115965056.L))+real(16580690160559682976.L))- real(18263993339472293952.L))+real(2313258532709130720.L))+ real(633471099889183500.L))/real(25663962300787160224875.L); _C4x[62] = (_n*(_n*(_n*(_n*(_n*(_n*(_n*(_n*(_n*(_n*(_n*(_n*(_n*(_n* (real(1348366608490174080.L)*_n+real(5517248802270313728.L))+ real(54884109770278089600.L))-real(410725042705782382080.L))+ real(645999166459353641088.L))-real(122667631098340849920.L))- real(368052651401186521728.L))+real(194698755374819634176.L))- real(44007847156610839936.L))+real(63847680811365110016.L))- real(26320609689333635200.L))+real(21317542480385897984.L))- real(18170598119629527936.L))+real(5408264866072845056.L))- real(6660168919267507840.L))+real(2709722479196675880.L))/ real(25663962300787160224875.L); _C4x[63] = (_n*(_n*(_n*(_n*(_n*(_n*(_n*(_n*(_n*(_n*(_n*(_n*(_n* (real(55407314304087368064.L)*_n-real(406054191572349887424.L))+ real(616535942225097879296.L))-real(90919939024331464256.L))- real(356540501468135277440.L))+real(174901775360747521856.L))- real(46252044424347629056.L))+real(61466034473601797312.L))- real(24627934848934652032.L))+real(24091470960744936000.L))- real(17212751748991212288.L))+real(8259024089688799168.L))- real(9338563264794234240.L))+real(1817846791809572160.L))+ real(488820862939508120.L))/real(25663962300787160224875.L); _C4x[64] = (_n*(_n*(_n*(_n*(_n*(_n*(_n*(_n*(_n*(_n*(_n*(_n* (real(589863493951969521024.L)*_n-real(65740435573486634496.L))- real(344448817745720924544.L))+real(159377073519514909440.L))- real(48022377678434173056.L))+real(58565177969584864256.L))- real(23803024688857466752.L))+real(25493284600946195712.L))- real(16257603620153257600.L))+real(10479636984885329408.L))- real(10245243715723244928.L))+real(3527273839089647360.L))- real(3546938143855926400.L))+real(1674200066451717000.L))/ real(25663962300787160224875.L); _C4x[65] = (_n*(_n*(_n*(_n*(_n*(_n*(_n*(_n*(_n*(_n* ((real(146986382004362764512.L)-real(332485530657606817920.L)*_n)*_n- real(49272023678007622080.L))+real(55614346192879924128.L))- real(23446972943866739456.L))+real(26015091993676510816.L))- real(15515664994429647936.L))+real(12055500873524365600.L))- real(10418728685641211264.L))+real(5021266495159651296.L))- real(5360528716174606016.L))+real(1332582772689968800.L))+ real(352185615496845060.L))/real(25663962300787160224875.L); _C4x[66] = (_n*(_n*(_n*(_n*(_n*(_n*(_n*(_n*(_n* ((real(52820294377651973120.L)-real(50060658829976585728.L)*_n)*_n- real(23322350804746445312.L))+real(25999931365039206400.L))- real(14989651655559085568.L))+real(13098779625122673664.L))- real(10319481571379796480.L))+real(6233525196463896576.L))- real(6254089969749669376.L))+real(2439783289072991232.L))- real(2111026048550146560.L))+real(1102832964709346080.L))/ real(25663962300787160224875.L); _C4x[67] = (_n*(_n*(_n*(_n*(_n*(_n*(_n*(_n*((real(25671030711491374848.L)- real(23295867752115878400.L)*_n)*_n-real(14630133575110608896.L))+ real(13740158680947179776.L))-real(10141817662568879616.L))+ real(7165404758277149440.L))-real(6671338473796527104.L))+ real(3365290718200325376.L))-real(3351890018689511936.L))+ real(975745690328200960.L))+real(254698899202571040.L))/ real(25663962300787160224875.L); _C4x[68] = (_n*(_n*(_n*(_n*(_n*(_n*(_n*((real(14092212633933705216.L)- real(14385412688913695232.L)*_n)*_n-real(9961622044992609792.L))+ real(7852394045118379008.L))-real(6846829190959905280.L))+ real(4121220909497710592.L))-real(4076761661962311168.L))+ real(1753209738542545920.L))-real(1359751670673338880.L))+ real(763467477079376160.L))/real(25663962300787160224875.L); _C4x[69] = (_n*(_n*(_n*(_n*(_n*(_n*((real(8339801374638293920.L)- real(9803797102758335744.L)*_n)*_n-real(6902495651553394624.L))+ real(4722953129058764000.L))-real(4498028309574814336.L))+ real(2388072033598248480.L))-real(2235024224523720000.L))+ real(725663436901734240.L))+real(187755511208304060.L))/ real(25663962300787160224875.L); _C4x[70] = (_n*(_n*(_n*(_n*(_n*((real(5190797136892005120.L)- real(6900850279756457088.L)*_n)*_n-real(4740867620388853120.L))+ real(2906381084666032640.L))-real(2800363610162079360.L))+ real(1298219641868540160.L))-real(928706997591676800.L))+ real(549779481029532600.L))/real(25663962300787160224875.L); _C4x[71] = (_n*(_n*(_n*(_n*((real(221725351825043520.L)- real(325240456165524608.L)*_n)*_n-real(211162456243553024.L))+ real(117466249040685504.L))-real(104390186541646208.L))+ real(36679327307318080.L))+real(9429511275907800.L))/ real(1710930820052477348325.L); _C4x[72] = (_n*(_n*(_n*((real(142732096833824256.L)- real(227139329872510080.L)*_n)*_n-real(133726552915187584.L))+ real(65715633278448384.L))-real(44232030890087040.L))+ real(27249816031410280.L))/real(1710930820052477348325.L); _C4x[73] = (_n*(_n*((real(45127039356960.L)-real(77938036150912.L)*_n)*_n- real(38447602473280.L))+real(14332118226272.L))+real(3666866110908.L))/ real(865067661064049625.L); _C4x[74] = (_n*((real(1356636312064.L)-real(2636988382464.L)*_n)*_n- real(871294451456.L))+real(553528081392.L))/real(45529876898107875.L); _C4x[75] = ((real(40707880576.L)-real(104352359168.L)*_n)*_n+ real(10376961584.L))/real(3123671388019875.L); _C4x[76] = (real(5603312.L)-real(8609536.L)*_n)/real(590597728875.L); _C4x[77] = real(2894476.L)/real(1093234093875.L); _C4x[78] = (_n*(_n*(_n*(_n*(_n*(_n*(_n*(_n*(_n*(_n*(_n*(_n*(_n*(_n*(_n* (_n*(_n*(_n*(_n*(_n*(_n*((-real(242883621120.L)*_n- real(365079728640.L))*_n-real(559688344320.L))-real(876931046400.L))- real(1407625524480.L))-real(2321347356160.L))-real(3946290505472.L))- real(6943856439296.L))-real(12709737232640.L))-real(24349180803584.L))- real(49209899019008.L))-real(105990551733248.L))- real(246631860763904.L))-real(631866750717440.L))- real(1832413577080576.L))-real(6282560835704832.L))- real(27486203656208640.L))-real(180623624026513920.L))- real(3160913420463993600.L))+real(48045883991052702720.L))- real(204195006961973986560.L))+real(408390013923947973120.L))- real(379219298643665975040.L))+real(130356633908760178920.L))/ real(35929547221102024314825.L); _C4x[79] = (_n*(_n*(_n*(_n*(_n*(_n*(_n*(_n*(_n*(_n*(_n*(_n*(_n*(_n*(_n* (_n*(_n*(_n*(_n*(_n*((-real(784468838400.L)*_n-real(1211352253440.L))* _n-real(1913950924800.L))-real(3102521564160.L))-real(5176110700544.L))- real(8922048099328.L))-real(15963949023232.L))-real(29824646548480.L))- real(58614317590528.L))-real(122359748912128.L))- real(274876595703808.L))-real(676708907219968.L))- real(1875217453742080.L))-real(6102027478356992.L))- real(25130243342819328.L))-real(153922740474768384.L))- real(2481611530103408640.L))+real(34318488565037644800.L))- real(131493998291302133760.L))+real(240229419955263513600.L))- real(233365722242255984640.L))+real(116682861121127992320.L))- real(23701206165229123440.L))/real(11976515740367341438275.L); _C4x[80] = (_n*(_n*(_n*(_n*(_n*(_n*(_n*(_n*(_n*(_n*(_n*(_n*(_n*(_n*(_n* (_n*(_n*(_n*(_n*((-real(14100417918720.L)*_n-real(22528414182400.L))*_n- real(36999879082240.L))-real(62695678987776.L))- real(110103434701568.L))-real(201527250907136.L))- real(387212081706240.L))-real(788334624182784.L))- real(1722236288376576.L))-real(4109266597180416.L))- real(10991278451304704.L))-real(34350838977943040.L))- real(135025265702966016.L))-real(783009277489051648.L))- real(11820899985746795776.L))+real(150569423628710929920.L))- real(516367601687102457600.L))+real(792215214980290053120.L))- real(523176326992797569280.L))-real(17159244282518822400.L))+ real(204195006961973986560.L))-real(77484712463249057400.L))/ real(35929547221102024314825.L); _C4x[81] = (_n*(_n*(_n*(_n*(_n*(_n*(_n*(_n*(_n*(_n*(_n*(_n*(_n*(_n*(_n* (_n*(_n*(_n*((-real(69291376017408.L)*_n-real(115728070557696.L))*_n- real(200070531596288.L))-real(359981829898240.L))- real(678816162906112.L))-real(1353785673203712.L))- real(2890726085804032.L))-real(6723753695690752.L))- real(17476258575777792.L))-real(52866462876516352.L))- real(200128797373775872.L))-real(1110110096913907712.L))- real(15874263169655439360.L))+real(188516686836447363072.L))- real(584747255596282003456.L))+real(750238284756528218112.L))- real(268893603768166809600.L))-real(306337666348967608320.L))+ real(341017402162058280960.L))-real(109819163408120463360.L))+ real(7292678820070499520.L))/real(35929547221102024314825.L); _C4x[82] = (_n*(_n*(_n*(_n*(_n*(_n*(_n*(_n*(_n*(_n*(_n*(_n*(_n*(_n*(_n* (_n*(_n*((-real(316266632392192.L)*_n-real(560813613253632.L))*_n- real(1040848049682944.L))-real(2039960293941248.L))- real(4273077558511104.L))-real(9729363901824000.L))- real(24690856467239424.L))-real(72690250131953664.L))- real(266676021407505920.L))-real(1425309156383028224.L))- real(19471097384879712768.L))+real(217791775730183008256.L))- real(618541288352201815552.L))+real(669580927307504636928.L))- real(66449075319041081856.L))-real(415120207219196774400.L))+ real(271524426118118208000.L))-real(26371049107871032320.L))- real(5238085096768903680.L))-real(5898490222115845200.L))/ real(35929547221102024314825.L); _C4x[83] = (_n*(_n*(_n*(_n*(_n*(_n*(_n*(_n*(_n*(_n*(_n*(_n*(_n*(_n*(_n* (_n*((-real(1461823265378304.L)*_n-real(2822457846364160.L))*_n- real(5815680367099904.L))-real(13002523267270656.L))- real(32331049698848768.L))-real(93006093247649792.L))- real(332208933966077952.L))-real(1720161862706997248.L))- real(22597300339825627136.L))+real(240048421933070370816.L))- real(631131479118559068160.L))+real(582406064076255082496.L))+ real(73874934688762712064.L))-real(429094500064720738304.L))+ real(183140836734686322688.L))-real(2054397393275480064.L))+ real(36250376022016880640.L))-real(33957241316984616960.L))+ real(5317107932280503520.L))/real(35929547221102024314825.L); _C4x[84] = (_n*(_n*(_n*(_n*(_n*(_n*(_n*(_n*(_n*(_n*(_n*(_n*(_n*(_n*(_n*((- real(1067471421138432.L)*_n-real(2349101840916480.L))*_n- real(5738576033176064.L))-real(16180146920588288.L))- real(56470414075432448.L))-real(284474901387388928.L))- real(3612319428336419328.L))+real(36689299007526614016.L))- real(90141993408478164480.L))+real(71564637069363744768.L))+ real(23741795651031553536.L))-real(57747760591701677056.L))+ real(16997829324519023104.L))-real(1480136257839773696.L))+ real(8315193643228048896.L))-real(3706262138720443392.L))- real(164917221937251840.L))-real(87892745620044720.L))/ real(5132792460157432044975.L); _C4x[85] = (_n*(_n*(_n*(_n*(_n*(_n*(_n*(_n*(_n*(_n*(_n*(_n*(_n*(_n*((- real(48042986241130496.L)*_n-real(133090957390725120.L))*_n- real(455144450749743104.L))-real(2238184783310667776.L))- real(27586914628348379136.L))+real(269373932187331772416.L))- real(623350670882734161920.L))+real(429031513413253545984.L))+ real(225194518881659715584.L))-real(367056871303009484800.L))+ real(79006410179092365312.L))-real(26178408368267509760.L))+ real(61916484299772755968.L))-real(15977635405341474816.L))+ real(8695064196615487488.L))-real(13319028971694243840.L))+ real(3165821671116888000.L))/real(35929547221102024314825.L); _C4x[86] = (_n*(_n*(_n*(_n*(_n*(_n*(_n*(_n*(_n*(_n*(_n*(_n*(_n*((- real(511389029512050432.L)*_n-real(2461546726962537984.L))*_n- real(29550293698669995264.L))+real(278667554097992549376.L))- real(611406082465663595264.L))+real(367062529094954495488.L))+ real(261873907500228468480.L))-real(328816100981872666624.L))+ real(55869074213894557952.L))-real(40022920693953265152.L))+ real(57094426968881406720.L))-real(11607702029215208448.L))+ real(17775856838088873216.L))-real(14378127912575347200.L))+ real(519096589050111744.L))+real(147272060840096472.L))/ real(35929547221102024314825.L); _C4x[87] = (_n*(_n*(_n*(_n*(_n*(_n*(_n*(_n*(_n*(_n*(_n*(_n* ((real(285448955427901504512.L)-real(31223733481256085504.L)*_n)*_n- real(597132006171262619648.L))+real(314209123559704175616.L))+ real(283760219629225199616.L))-real(293786554332581295104.L))+ real(43243222327688929280.L))-real(49729927392168561664.L))+ real(49758672136213755904.L))-real(11463852924163548160.L))+ real(23000103470651396096.L))-real(12148563661590608896.L))+ real(3940386282428868608.L))-real(6320436734076408832.L))+ real(1960568001627648784.L))/real(35929547221102024314825.L); _C4x[88] = (_n*(_n*(_n*(_n*(_n*(_n*(_n*(_n*(_n*(_n*(_n* ((real(269270113711154254848.L)-real(581745027768314771712.L)*_n)*_n+ real(295866519843524886784.L))-real(263213710131456252416.L))+ real(36857563226622991104.L))-real(55635282410869934080.L))+ real(42618725592382870784.L))-real(13361637729751954944.L))+ real(24964906463459208960.L))-real(10132570797317907456.L))+ real(7713853460933765376.L))-real(8118635745745555968.L))+ real(817804752655172352.L))+real(241872668423848056.L))/ real(35929547221102024314825.L); _C4x[89] = (_n*(_n*(_n*(_n*(_n*(_n*(_n*(_n*(_n*(_n*(_n* (real(301508380982742810624.L)*_n-real(237098342869246836736.L))+ real(34055388652539379712.L))-real(58666097247303598080.L))+ real(36617989065130246144.L))-real(15869885773640794112.L))+ real(24907361632198950912.L))-real(9102550367414353920.L))+ real(10612564545839628288.L))-real(8028287362742255616.L))+ real(2453762803818332160.L))-real(3435267925345665024.L))+ real(1281312645923791488.L))/real(35929547221102024314825.L); _C4x[90] = (_n*(_n*(_n*(_n*(_n*(_n*(_n*(_n*(_n*(_n* (real(33241434114054288384.L)*_n-real(59708543117484410880.L))+ real(31913638267091926016.L))-real(18261620220846055424.L))+ real(23810951878141281280.L))-real(8919008353446295552.L))+ real(12421882670009666560.L))-real(7453149529783881728.L))+ real(4282134731677766656.L))-real(4892000746239961088.L))+ real(758525460038671360.L))+real(216382513998207200.L))/ real(35929547221102024314825.L); _C4x[91] = (_n*(_n*(_n*(_n*(_n*(_n*(_n*(_n*(_n* (real(4052094133266980864.L)*_n-real(2891602662168268800.L))+ real(3185306291627917312.L))-real(1323327350130077696.L))+ real(1903968635822432256.L))-real(993615313994502144.L))+ real(838457301038678016.L))-real(759500839229239296.L))+ real(247076914051817472.L))-real(294315017353728000.L))+ real(125447024751451200.L))/real(5132792460157432044975.L); _C4x[92] = (_n*(_n*(_n*(_n*(_n*(_n*(_n*(_n*(real(20712624738972171264.L)* _n-real(9864755493535784960.L))+real(13599413786714850304.L))- real(6685964913996724224.L))+real(7057906530373766144.L))- real(5308190137312104448.L))+real(2758504160084972544.L))- real(3137033601628416000.L))+real(630344572775930880.L))+ real(174767528979882720.L))/real(35929547221102024314825.L); _C4x[93] = (_n*(_n*(_n*(_n*(_n*(_n*(_n*(real(13471407830586753024.L)*_n- real(6632511891899056128.L))+real(7850812427279368192.L))- real(5177464536287248384.L))+real(3693871747663462400.L))- real(3627594092443238400.L))+real(1285906172887203840.L))- real(1329609876687912960.L))+real(626080534632443520.L))/ real(35929547221102024314825.L); _C4x[94] = (_n*(_n*(_n*(_n*(_n*(_n*(real(8315448511392994048.L)*_n- real(5060090885926992384.L))+real(4459535157381056768.L))- real(3811080007110016000.L))+real(1938317597848477440.L))- real(2120327477470379520.L))+real(508119540150539520.L))+ real(137999414413836360.L))/real(35929547221102024314825.L); _C4x[95] = (_n*(_n*(_n*(_n*(_n*(real(335889721529219072.L)*_n- real(257030660167255040.L))+real(169115738491932672.L))- real(170690997462948864.L))+real(65675140787300352.L))- real(60512422833730560.L))+real(30748311870368400.L))/ real(2395303148073468287655.L); _C4x[96] = (_n*(_n*(_n*(_n*(real(1016222889010513664.L)*_n- real(930326412265980928.L))+real(478801204975292672.L))- real(498875776721986048.L))+real(135831004466592512.L))+ real(36335146679814136.L))/real(11976515740367341438275.L); _C4x[97] = (_n*(_n*(_n*(real(20760216502272.L)*_n-real(20955891089408.L))+ real(8660978450432.L))-real(7275842387968.L))+real(3923283780416.L))/ real(403698241829889825.L); _C4x[98] = (_n*(_n*(real(15929987148288.L)*_n-real(15815039865856.L))+ real(4741616422400.L))+real(1254038195696.L))/ real(519040596638429775.L); _C4x[99] = (_n*(real(969805824.L)*_n-real(756467712.L))+ real(427576864.L))/real(56794025236725.L); _C4x[100] = (real(76231168.L)*_n+real(19985680.L))/real(10276400482425.L); _C4x[101] = real(433472.L)/real(72882272925.L); _C4x[102] = (_n*(_n*(_n*(_n*(_n*(_n*(_n*(_n*(_n*(_n*(_n*(_n*(_n*(_n*(_n* (_n*(_n*(_n*(_n*(_n*(_n*(real(18103127040.L)*_n+real(30658521600.L))+ real(53362944000.L))+real(95756838400.L))+real(177805329408.L))+ real(343155696128.L))+real(692078714880.L))+real(1468390694400.L))+ real(3305318661120.L))+real(7979983624704.L))+real(20965164079104.L))+ real(61148395230720.L))+real(203827984102400.L))+ real(812400108065280.L))+real(4188373890469888.L))+ real(32983444387450368.L))+real(706788094016793600.L))- real(13546771801988544000.L))+real(75861922091135846400.L))- real(216206477959737162240.L))+real(350048583363383976960.L))- real(291707152802819980800.L))+real(94804824660916493760.L))/ real(46195132141416888404775.L); _C4x[103] = (_n*(_n*(_n*(_n*(_n*(_n*(_n*(_n*(_n*(_n*(_n*(_n*(_n*(_n*(_n* (_n*(_n*(_n*(_n*(_n*(real(273177999360.L)*_n+real(481049600000.L))+ real(875104847872.L))+real(1651522793472.L))+real(3250070362112.L))+ real(6711949361152.L))+real(14663819520000.L))+real(34246326030336.L))+ real(86693786597376.L))+real(242515952050176.L))+ real(771052145575936.L))+real(2911828344320000.L))+ real(14109555425236992.L))+real(103409507088842752.L))+ real(2037643897713600512.L))-real(35395947748361023488.L))+ real(176697023504198400000.L))-real(442166631616906076160.L))+ real(630737695100586608640.L))-real(521641026188572200960.L))+ real(233365722242255984640.L))-real(43756072920422997120.L))/ real(46195132141416888404775.L); _C4x[104] = (_n*(_n*(_n*(_n*(_n*(_n*(_n*(_n*(_n*(_n*(_n*(_n*(_n*(_n*(_n* (_n*(_n*(_n*(_n*(real(2513346781184.L)*_n+real(4653198092288.L))+ real(8967832989696.L))+real(18101637462016.L))+real(38566407405568.L))+ real(87605487814656.L))+real(215045569449984.L))+ real(581215525459968.L))+real(1777694813626368.L))+ real(6424469183555584.L))+real(29598152754343936.L))+ real(204557105919817728.L))+real(3759883208095809536.L))- real(60010660035937859584.L))+real(268981559619866677248.L))- real(580150515251491301376.L))+real(649491139195165532160.L))- real(296945237899588884480.L))-real(105484196431484129280.L))+ real(178456140538195752960.L))-real(58341430560563996160.L))/ real(46195132141416888404775.L); _C4x[105] = (_n*(_n*(_n*(_n*(_n*(_n*(_n*(_n*(_n*(_n*(_n*(_n*(_n*(_n*(_n* (_n*(_n*(_n*(real(19013924386816.L)*_n+real(37632291803136.L))+ real(78471447259136.L))+real(174088509751296.L))+ real(416320388585472.L))+real(1092997200375808.L))+ real(3235904844433408.L))+real(11271030679953408.L))+ real(49777532410411008.L))+real(327472966826872832.L))+ real(5674829647767791616.L))-real(84189632353294598144.L))+ real(342567056241741305856.L))-real(639338954164724158464.L))+ real(536482529069452249088.L))-real(9172538820129054720.L))- real(345006828292730849280.L))+real(255763051621543710720.L))- real(65746999145651066880.L))+real(2573886642377823360.L))/ real(46195132141416888404775.L); _C4x[106] = (_n*(_n*(_n*(_n*(_n*(_n*(_n*(_n*(_n*(_n*(_n*(_n*(_n*(_n*(_n* (_n*(_n*(real(136634213689344.L)*_n+real(296980894577664.L))+ real(694382762737664.L))+real(1778037040647168.L))+ real(5119046452058112.L))+real(17276439327286272.L))+ real(73591094605443072.L))+real(464123397252365312.L))+ real(7645258159150123008.L))-real(106431032632201030656.L))+ real(397322760629848940544.L))-real(647100699339985458176.L))+ real(388288976253983422464.L))+real(196457446559392105472.L))- real(391173179500435189760.L))+real(156577122427853675520.L))+ real(5120287081099438080.L))-real(1083741744159083520.L))- real(6186359122908101760.L))/real(46195132141416888404775.L); _C4x[107] = (_n*(_n*(_n*(_n*(_n*(_n*(_n*(_n*(_n*(_n*(_n*(_n*(_n*(_n*(_n* (_n*(real(1048407575824384.L)*_n+real(2626638683471872.L))+ real(7380467755382784.L))+real(24234411666681856.L))+ real(100037120244705280.L))+real(608172919175700480.L))+ real(9584857549436409856.L))-real(126184649112624951296.L))+ real(436228804751660992512.L))-real(625442338951991443456.L))+ real(247714942105394591744.L))+real(314492653942129324032.L))- real(346041142333110769664.L))+real(64513956314965319680.L))+ real(6992490210139478016.L))+real(40698429093695901696.L))- real(26418168314138818560.L))+real(3115757514457365120.L))/ real(46195132141416888404775.L); _C4x[108] = (_n*(_n*(_n*(_n*(_n*(_n*(_n*(_n*(_n*(_n*(_n*(_n*(_n*(_n*(_n* (real(9965526918987776.L)*_n+real(31941212397987840.L))+ real(128254430705700864.L))+real(754928478787811328.L))+ real(11443013490573385728.L))-real(143380861806255732736.L))+ real(462707814424058327040.L))-real(588682188079886444544.L))+ real(128886568389798051840.L))+real(370304580148619683840.L))- real(276392409679204675584.L))+real(15126796833668495360.L))- real(19979400699805933568.L))+real(55885978313940289536.L))- real(13959850176936136704.L))-real(1752834473161648128.L))- real(1138714151471500800.L))/real(46195132141416888404775.L); _C4x[109] = (_n*(_n*(_n*(_n*(_n*(_n*(_n*(_n*(_n*(_n*(_n*(_n*(_n*(_n* (real(157539740750432256.L)*_n+real(901048006842634240.L))+ real(13192536862516271104.L))-real(158172203468725149696.L))+ real(479762841820583946240.L))-real(545407492632180527104.L))+ real(33687967123189757952.L))+real(387655649704096743424.L))- real(210448063744198834176.L))-real(2168459407262281728.L))- real(45090046273136650240.L))+real(49867431789483614208.L))- real(4405388962778044416.L))+real(9891350435745214464.L))- real(11629020106889644032.L))+real(2142745905027579264.L))/ real(46195132141416888404775.L); _C4x[110] = (_n*(_n*(_n*(_n*(_n*(_n*(_n*(_n*(_n*(_n*(_n*(_n*(_n* (real(14821072658522649600.L)*_n-real(170799381732787991040.L))+ real(489794152476524021760.L))-real(500528836213713190400.L))- real(40435972066279236608.L))+real(383084793925621691904.L))- real(156863559792402190336.L))-real(1938352761244243456.L))- real(60068217375579012096.L))+real(37173904484881866240.L))- real(4135539347527870464.L))+real(19515690288875966976.L))- real(10435833217849611264.L))-real(330755163996977664.L))- real(160401631336588992.L))/real(46195132141416888404775.L); _C4x[111] = (_n*(_n*(_n*(_n*(_n*(_n*(_n*(_n*(_n*(_n*(_n*(_n* (real(494643829831786352640.L)*_n-real(456729009019156316160.L))- real(97179455474204364800.L))+real(366971588404943659008.L))- real(116321132765310971904.L))+real(5942013359845441536.L))- real(65872479785281490944.L))+real(25528829872870711296.L))- real(8966084839048458240.L))+real(23187693588903051264.L))- real(6819842083948056576.L))+real(3735628842718961664.L))- real(5849993593648705536.L))+real(1437054551156673792.L))/ real(46195132141416888404775.L); _C4x[112] = (_n*(_n*(_n*(_n*(_n*(_n*(_n*(_n*(_n*(_n* ((real(345500549750762024960.L)-real(140110654925523861504.L)*_n)*_n- real(86855575265351786496.L))+real(16025211538095771648.L))- real(65548752179557269504.L))+real(17341500773995933696.L))- real(14922975928802844672.L))+real(22517783091816714240.L))- real(4913568107899895808.L))+real(8272319983869505536.L))- real(6684449054325202944.L))+real(214361814320812032.L))+ real(66945263098592256.L))/real(46195132141416888404775.L); _C4x[113] = (_n*(_n*(_n*(_n*(_n*(_n*(_n*(_n*(_n* ((real(25687197355740815360.L)-real(66003204519449473024.L)*_n)*_n- real(61803020428320116736.L))+real(12585324357067571200.L))- real(19972298686181273600.L))+real(19807323231475605504.L))- real(5057295022990479360.L))+real(11281463933279059968.L))- real(5670781104596299776.L))+real(2012896756543217664.L))- real(3278630196122652672.L))+real(989411609030664960.L))/ real(46195132141416888404775.L); _C4x[114] = (_n*(_n*(_n*(_n*(_n*(_n*(_n*(_n* ((real(10454815561036474368.L)-real(56505827080219357184.L)*_n)*_n- real(23462799663937798144.L))+real(16633187419360352256.L))- real(6463336376529457152.L))+real(12544758638274709504.L))- real(4649603171325665280.L))+real(4261199547337979904.L))- real(4305287859314405376.L))+real(364277280888514560.L))+ real(113015337613920000.L))/real(46195132141416888404775.L); _C4x[115] = (_n*(_n*(_n*(_n*(_n*(_n*(_n*((real(13802796245122646016.L)- real(25434405874663133184.L)*_n)*_n-real(8337694044015652864.L))+ real(12533392600841527296.L))-real(4225871962067259392.L))+ real(6121993094360514560.L))-real(4216339765361848320.L))+ real(1337342433601413120.L))-real(1998257783506145280.L))+ real(703676254544444160.L))/real(46195132141416888404775.L); _C4x[116] = (_n*(_n*(_n*(_n*(_n*(_n*((real(11801027199330217984.L)- real(10162290103828054016.L)*_n)*_n-real(4394816238218551296.L))+ real(7309114569868562432.L))-real(3830780949081210880.L))+ real(2564692061043732480.L))-real(2868745887941713920.L))+ real(372693313207111680.L))+real(110793809332362240.L))/ real(46195132141416888404775.L); _C4x[117] = (_n*(_n*(_n*(_n*(_n*((real(7862329335452393472.L)- real(4954857180036468736.L)*_n)*_n-real(3544201182159908864.L))+ real(3697851436526551040.L))-real(3077148363054796800.L))+ real(984815530288128000.L))-real(1300279457548431360.L))+ real(515834171582526720.L))/real(46195132141416888404775.L); _C4x[118] = (_n*(_n*(_n*(_n*((real(4561351010191782400.L)- real(3476050711360447488.L)*_n)*_n-real(3007934134419658752.L))+ real(1723564576918052352.L))-real(1984277919243045888.L))+ real(336215412009404928.L))+real(96673839692633280.L))/ real(46195132141416888404775.L); _C4x[119] = (_n*(_n*(_n*((real(271211726605918208.L)- real(321074139364931584.L)*_n)*_n-real(251667480938514432.L))+ real(84756609940000768.L))-real(99010380079880192.L))+ real(43146056709216384.L))/real(5132792460157432044975.L); _C4x[120] = (_n*(_n*((real(126104873342976.L)-real(236083241017344.L)*_n)* _n-real(143668734849024.L))+real(29310252353536.L))+ real(8220189705728.L))/real(4671365369745867975.L); _C4x[121] = (_n*((real(4726530879488.L)-real(13190908925952.L)*_n)*_n- real(4952243259392.L))+real(2326694308224.L))/ real(359335797672759075.L); _C4x[122] = ((real(1497740028928.L)-real(6393343404032.L)*_n)*_n+ real(412184096896.L))/real(281641571148919275.L); _C4x[123] = (real(42776448.L)-real(85649408.L)*_n)/real(8407964031075.L); _C4x[124] = real(74207744.L)/real(61002462438225.L); _C4x[125] = (_n*(_n*(_n*(_n*(_n*(_n*(_n*(_n*(_n*(_n*(_n*(_n*(_n*(_n*(_n* (_n*(_n*(_n*(_n*((-real(2537256960.L)*_n-real(4922368000.L))*_n- real(9913649152.L))-real(20825468928.L))-real(45893163008.L))- real(106847240192.L))-real(265153996800.L))-real(709434249216.L))- real(2077628872704.L))-real(6799512674304.L))-real(25624089430016.L))- real(116473133772800.L))-real(691850414610432.L))- real(6354774178643968.L))-real(161252394783090688.L))+ real(3731841136408670208.L))-real(25915563447282432000.L))+ real(95369273485999349760.L))-real(214580865343498536960.L))+ real(302002699372331274240.L))-real(233365722242255984640.L))+ real(72926788200704995200.L))/real(56460717061731752494725.L); _C4x[126] = (_n*(_n*(_n*(_n*(_n*(_n*(_n*(_n*(_n*(_n*(_n*(_n*(_n*(_n*(_n* (_n*(_n*(_n*((-real(57693732864.L)*_n-real(118378242048.L))*_n- real(254261280768.L))-real(575562375168.L))-real(1384868610048.L))- real(3580953829376.L))-real(10097064198144.L))-real(31675778555904.L))- real(113828878843904.L))-real(490320413958144.L))- real(2739448106336256.L))-real(23453030216491008.L))- real(548560506517782528.L))+real(11543447295506767872.L))- real(71688207509282603008.L))+real(231374150457337552896.L))- real(447820936369040424960.L))+real(540425883087329648640.L))- real(398816961850542735360.L))+real(164728745112180695040.L))- real(29170715280281998080.L))/real(56460717061731752494725.L); _C4x[127] = (_n*(_n*(_n*(_n*(_n*(_n*(_n*(_n*(_n*(_n*(_n*(_n*(_n*(_n*(_n* (_n*(_n*((-real(808445556736.L)*_n-real(1786041962496.L))*_n- real(4184459012096.L))-real(10507804246016.L))-real(28685099046912.L))- real(86810454355968.L))-real(299658406053888.L))- real(1233549531045888.L))-real(6545223491975168.L))- real(52802874841321472.L))-real(1152224452623476736.L))+ real(22320594549295529984.L))-real(125215982237277116416.L))+ real(354448650668679942144.L))-real(570073287671020750848.L))+ real(501725308339387883520.L))-real(148802453393668945920.L))- real(140163932244574801920.L))+real(152446338678377748480.L))- real(45471997348674879360.L))/real(56460717061731752494725.L); _C4x[128] = (_n*(_n*(_n*(_n*(_n*(_n*(_n*(_n*(_n*(_n*(_n*(_n*(_n*(_n*(_n* (_n*((-real(9597691920384.L)*_n-real(23494436962304.L))*_n- real(62361803423744.L))-real(182950641942528.L))- real(610001932746752.L))-real(2415033030459392.L))- real(12258327890952192.L))-real(93963282570493952.L))- real(1930830919739015168.L))+real(34785359442973310976.L))- real(178075457418310057984.L))+real(445101745270129934336.L))- real(587959696439944249344.L))+real(324671767561098969088.L))+ real(140394292808550645760.L))-real(326441861023223070720.L))+ real(189482034804857733120.L))-real(40459691781939118080.L))+ real(541870872079541760.L))/real(56460717061731752494725.L); _C4x[129] = (_n*(_n*(_n*(_n*(_n*(_n*(_n*(_n*(_n*(_n*(_n*(_n*(_n*(_n*(_n* ((-real(115017067874304.L)*_n-real(328354924756992.L))*_n- real(1062119704868864.L))-real(4064233651613696.L))- real(19846559690467328.L))-real(145485874426339328.L))- real(2836182236352976896.L))+real(47920312108896546816.L))- real(225916379763918047232.L))+real(502595593832101625856.L))- real(540905307471102572544.L))+real(127405670163817730048.L))+ real(315802573700030470144.L))-real(315723956664196505600.L))+ real(79405286402473371648.L))+real(15794357940961947648.L))+ real(2544437138460456960.L))-real(5915423686868330880.L))/ real(56460717061731752494725.L); _C4x[130] = (_n*(_n*(_n*(_n*(_n*(_n*(_n*(_n*(_n*(_n*(_n*(_n*(_n*(_n*((- real(1664495212691456.L)*_n-real(6180472042659840.L))*_n- real(29166995845136384.L))-real(205539249288568832.L))- real(3824268163589701632.L))+real(61023735766946799616.L))- real(267055399292611543040.L))+real(532832403184947339264.L))- real(462267689701148262400.L))-real(39015572245931008000.L))+ real(383060998113397653504.L))-real(227617994389522472960.L))+ real(711622893799702528.L))-real(387352371525525504.L))+ real(41263859568909336576.L))-real(20330366864340836352.L))+ real(1849428846010609920.L))/real(56460717061731752494725.L); _C4x[131] = (_n*(_n*(_n*(_n*(_n*(_n*(_n*(_n*(_n*(_n*(_n*(_n*(_n*((- real(40019005873637376.L)*_n-real(272261294199951360.L))*_n- real(4858877431278753792.L))+real(73653561205573214208.L))- real(301269236174345922560.L))+real(542796485481860829184.L))- real(373296281778879363072.L))-real(162249902898593972224.L))+ real(382431663488608434176.L))-real(136592383953202286592.L))- real(22533323410280847360.L))-real(36819831808733503488.L))+ real(47746588802853427200.L))-real(5860112779510886400.L))- real(1438706431376406528.L))-real(1384912004220683904.L))/ real(56460717061731752494725.L); _C4x[132] = (_n*(_n*(_n*(_n*(_n*(_n*(_n*(_n*(_n*(_n*(_n*(_n* ((real(85554928869091901440.L)-real(5911898202030080000.L)*_n)*_n- real(329037136989733519360.L))+real(538573729785929728000.L))- real(285757899196842770432.L))-real(245880014080640221184.L))+ real(347694094967094378496.L))-real(68280878701665910784.L))- real(13052392881684086784.L))-real(60356030390417162240.L))+ real(33166479587711647744.L))+real(918143736754929664.L))+ real(11253131021190037504.L))-real(9943488469347270656.L))+ real(1472213422500165632.L))/real(56460717061731752494725.L); _C4x[133] = (_n*(_n*(_n*(_n*(_n*(_n*(_n*(_n*(_n*(_n*(_n* ((real(524897089413599477760.L)-real(351118684368217559040.L)*_n)*_n- real(205389679022947020800.L))-real(298119328625579859968.L))+ real(300050884905994973184.L))-real(25112131953393565696.L))+ real(8008073772506845184.L))-real(66798173902905532416.L))+ real(16491634366686474240.L))-real(3992578649173868544.L))+ real(19954657147267239936.L))-real(7003958154890747904.L))- real(647530057747206144.L))-real(350875606673394432.L))/ real(56460717061731752494725.L); _C4x[134] = (_n*(_n*(_n*(_n*(_n*(_n*(_n*(_n*(_n*(_n*((- real(134450348908761120768.L)*_n-real(327239199686486179840.L))*_n+ real(251011872757925052416.L))-real(1867758902463971328.L))+ real(29035841261959512064.L))-real(61859532384109838336.L))+ real(5781632490324590592.L))-real(13107991630759280640.L))+ real(20768921077306687488.L))-real(2948895761747066880.L))+ real(4066123689261957120.L))-real(5306310981973327872.L))+ real(1065217274598188544.L))/real(56460717061731752494725.L); _C4x[135] = (_n*(_n*(_n*(_n*(_n*(_n*(_n*(_n*(_n*(_n* (real(206053883225512914944.L)*_n+real(7720736017805680640.L))+ real(45397379103692066816.L))-real(51715684622099906560.L))+ real(1760287638430576640.L))-real(20963860111527911424.L))+ real(16956495612358184960.L))-real(2208998123324489728.L))+ real(8937580274582564864.L))-real(5234902751701590016.L))- real(120335382888706048.L))-real(55084512703673600.L))/ real(56460717061731752494725.L); _C4x[136] = (_n*(_n*(_n*(_n*(_n*(_n*(_n*(_n*(_n* (real(56164240858270859264.L)*_n-real(40506307406240514048.L))+ real(2510618052392648704.L))-real(25601333423813328896.L))+ real(12055656223301763072.L))-real(4273511299313270784.L))+ real(11375548621740441600.L))-real(3565500594733744128.L))+ real(1945198541853622272.L))-real(3079469070135951360.L))+ real(770312541176478720.L))/real(56460717061731752494725.L); _C4x[137] = (_n*(_n*(_n*(_n*(_n*(_n*(_n*(_n*(real(5855674501258481664.L)* _n-real(27112441910496690176.L))+real(8045236379185967104.L))- real(7462794309065711616.L))+real(11438973707792863232.L))- real(2557499453730242560.L))+real(4538321823875051520.L))- real(3653879278459576320.L))+real(107313308782202880.L))+ real(35462645868061440.L))/real(56460717061731752494725.L); _C4x[138] = (_n*(_n*(_n*(_n*(_n*(_n*(_n*(real(5578913399404363776.L)*_n- real(10492014814329421824.L))+real(10109913939708706816.L))- real(2718425183160451072.L))+real(6419178928236462080.L))- real(3105303494357729280.L))+real(1168915061406597120.L))- real(1916694726746849280.L))+real(567340713305372160.L))/ real(56460717061731752494725.L); _C4x[139] = (_n*(_n*(_n*(_n*(_n*(_n*(real(8321651132554350592.L)*_n- real(3732077199843581952.L))+real(7253697442863263744.L))- real(2508592211553894400.L))+real(2612672354259652608.L))- real(2554306470086418432.L))+real(188124321312829440.L))+ real(60321591649541376.L))/real(56460717061731752494725.L); _C4x[140] = (_n*(_n*(_n*(_n*(_n*(real(2409402339733405696.L)*_n- real(771797135840051200.L))+real(1289305518469545984.L))- real(825470576609918976.L))+real(271707946069131264.L))- real(421028947932020736.L))+real(142328015420000256.L))/ real(18820239020577250831575.L); _C4x[141] = (_n*(_n*(_n*(_n*(real(4673381031931672576.L)*_n- real(2204999319298383872.L))+real(1674107785629976576.L))- real(1821433246212952064.L))+real(204983045455648768.L))+ real(62837115694559360.L))/real(56460717061731752494725.L); _C4x[142] = (_n*(_n*(_n*(real(6479517679616.L)*_n-real(4996902068224.L))+ real(1604074520576.L))-real(2261353160704.L))+real(850763001088.L))/ real(146396065718531475.L); _C4x[143] = (_n*(_n*(real(262985717004288.L)*_n-real(300145979420672.L))+ real(44168174921728.L))+real(13069811607424.L))/ real(12736457717512238325.L); _C4x[144] = (_n*(real(2999519051776.L)*_n-real(3815382990848.L))+ real(1566641629696.L))/real(344228586959790225.L); _C4x[145] = (real(19006687232.L)*_n+real(5473719680.L))/ real(6052799884148325.L); _C4x[146] = real(356096.L)/real(98232628725.L); _C4x[147] = (_n*(_n*(_n*(_n*(_n*(_n*(_n*(_n*(_n*(_n*(_n*(_n*(_n*(_n*(_n* (_n*(_n*(_n*(_n*(real(651542528.L)*_n+real(1480134656.L))+ real(3538968576.L))+real(8971595776.L))+real(24338169856.L))+ real(71493373952.L))+real(230978592768.L))+real(838422294528.L))+ real(3525673238528.L))+real(18006116896768.L))+real(121132059123712.L))+ real(1271886620798976.L))+real(37308674210103296.L))- real(1011997787949051904.L))+real(8385124528720715776.L))- real(37733060379243220992.L))+real(107808743940694917120.L))- real(206633425886331924480.L))+real(262987996582604267520.L))- real(192183535964210810880.L))+real(58341430560563996160.L))/ real(66726301982046616584675.L); _C4x[148] = (_n*(_n*(_n*(_n*(_n*(_n*(_n*(_n*(_n*(_n*(_n*(_n*(_n*(_n*(_n* (_n*(_n*(_n*(real(7458340864.L)*_n+real(18373115904.L))+ real(48303816704.L))+real(137088466944.L))+real(426386014208.L))+ real(1483862474752.L))+real(5953448230912.L))+real(28844183846912.L))+ real(182831340797952.L))+real(1794064010805248.L))+ real(48695087767732224.L))-real(1207444365345161216.L))+ real(9010044821739945984.L))-real(35853635915909267456.L))+ real(88642745017904709632.L))-real(143744991920926556160.L))+ real(153545786824626094080.L))-real(104039207439272017920.L))+ real(40459691781939118080.L))-real(6863697713007528960.L))/ real(22242100660682205528225.L); _C4x[149] = (_n*(_n*(_n*(_n*(_n*(_n*(_n*(_n*(_n*(_n*(_n*(_n*(_n*(_n*(_n* (_n*(_n*(real(490704814080.L)*_n+real(1351320182784.L))+ real(4066117287936.L))+real(13642049150976.L))+real(52552023064576.L))+ real(243279881248768.L))+real(1464825953353728.L))+ real(13556477720518656.L))+real(343923884074745856.L))- real(7878851450693443584.L))+real(53471567123098435584.L))- real(189193134843847680000.L))+real(401150859822932803584.L))- real(520992983649036394496.L))+real(373301388109800177664.L))- real(53753590510290542592.L))-real(150027552756631388160.L))+ real(130049009299090022400.L))-real(36485972053355811840.L))/ real(66726301982046616584675.L); _C4x[150] = (_n*(_n*(_n*(_n*(_n*(_n*(_n*(_n*(_n*(_n*(_n*(_n*(_n*(_n*(_n* (_n*(real(9749494448128.L)*_n+real(31673898237952.L))+ real(117735157710848.L))+real(523716343988224.L))+ real(3014630577946624.L))+real(26503128817270784.L))+ real(633547671857250304.L))-real(13527382906757414912.L))+ real(84249771272726986752.L))-real(266993234665208676352.L))+ real(485046923972015734784.L))-real(484496742159475834880.L))+ real(152283106240320520192.L))+real(216332688829859037184.L))- real(288444933088880246784.L))+real(140628841746416959488.L))- real(25381545776247521280.L))-real(361247248053027840.L))/ real(66726301982046616584675.L); _C4x[151] = (_n*(_n*(_n*(_n*(_n*(_n*(_n*(_n*(_n*(_n*(_n*(_n*(_n*(_n*(_n* (real(222873818431488.L)*_n+real(956950274150400.L))+ real(5293125928886272.L))+real(44463157172482048.L))+ real(1008090872565547008.L))-real(20209302047056539648.L))+ real(116418035304358502400.L))-real(332852458239655022592.L))+ real(518452370166161571840.L))-real(376911917377749970944.L))- real(64742299564264218624.L))+real(344934836248745881600.L))- real(234766360594590089216.L))+real(31571817959676137472.L))+ real(17415258636573794304.L))+real(5088874276920913920.L))- real(5457974726018572800.L))/real(66726301982046616584675.L); _C4x[152] = (_n*(_n*(_n*(_n*(_n*(_n*(_n*(_n*(_n*(_n*(_n*(_n*(_n*(_n* (real(8348766968020992.L)*_n+real(67330122517184512.L))+ real(1455753628881190912.L))-real(27570062059421564928.L))+ real(147907974856061550592.L))-real(384075322020403478528.L))+ real(512983686873806733312.L))-real(244731045423731965952.L))- real(222808850930770313216.L))+real(353957909818188103680.L))- real(124681414813050798080.L))-real(26261430418020761600.L))- real(10976353583943057408.L))+real(39242463673357041664.L))- real(15614257863671742464.L))+real(1093165585412640768.L))/ real(66726301982046616584675.L); _C4x[153] = (_n*(_n*(_n*(_n*(_n*(_n*(_n*(_n*(_n*(_n*(_n*(_n*(_n* (real(1962969852477898752.L)*_n-real(35305448761504137216.L))+ real(177444036314716831744.L))-real(420983788835094560768.L))+ real(481513040737160986624.L))-real(115770824336966385664.L))- real(316251646991689056256.L))+real(300296703316121845760.L))- real(35698934410878713856.L))-real(22987716899146137600.L))- real(48754125669778980864.L))+real(37558578965926215680.L))- real(819150890898751488.L))-real(835363951119925248.L))- real(1478495983335870464.L))/real(66726301982046616584675.L); _C4x[154] = (_n*(_n*(_n*(_n*(_n*(_n*(_n*(_n*(_n*(_n*(_n*(_n* (real(204342801095639105536.L)*_n-real(445279393128034074624.L))+ real(434697594718445436928.L))-real(3268222682794164224.L))- real(357961072015183773696.L))+real(226521921755465383936.L))+ real(13832199423611699200.L))+real(6700002009011060736.L))- real(63646208803315712000.L))+real(17600007691779702784.L))+ real(2188204058816348160.L))+real(12161956907243143168.L))- real(8401794163626278912.L))+real(1022107655960530944.L))/ real(66726301982046616584675.L); _C4x[155] = (_n*(_n*(_n*(_n*(_n*(_n*(_n*(_n*(_n*(_n*(_n* (real(380310685278830297088.L)*_n+real(88396387765523898368.L))- real(364041147913263235072.L))+real(155712348873284886528.L))+ real(30751932572098691072.L))+real(37327348376370569216.L))- real(57819133838626406400.L))+real(1568766212252180480.L))- real(7294602820486266880.L))+real(18993005469496762368.L))- real(4271172311806296064.L))-real(681405103973687296.L))- real(465241450273410048.L))/real(66726301982046616584675.L); _C4x[156] = (_n*(_n*(_n*(_n*(_n*(_n*(_n*(_n*(_n* ((real(97442281219530752000.L)-real(348150405088168148992.L)*_n)*_n+ real(27296601451329912832.L))+real(58368243554678210560.L))- real(42347388774899941376.L))-real(3874741747224477696.L))- real(18528883346465587200.L))+real(16619875543575822336.L))- real(566081087842844672.L))+real(4532144155924955136.L))- real(4744835934382817280.L))+real(796967417840384000.L))/ real(66726301982046616584675.L); _C4x[157] = (_n*(_n*(_n*(_n*(_n*(_n*(_n*(_n*(_n* (real(13745492203103485952.L)*_n+real(68343033702309838848.L))- real(25868893155690938368.L))-real(954725642114842624.L))- real(25342928463681454080.L))+real(10343803033386303488.L))- real(1580521432914264064.L))+real(9280150579607814144.L))- real(3906003728131391488.L))-real(282227624406138880.L))- real(139103863664855040.L))/real(66726301982046616584675.L); _C4x[158] = (_n*(_n*(_n*(_n*(_n*(_n*(_n*((real(6052176817707810816.L)- real(12742218592723501056.L)*_n)*_n-real(26781807051222712320.L))+ real(4776498176041353216.L))-real(5579883103275679744.L))+ real(10639659233545158656.L))-real(1908917464976621568.L))+ real(2064236965302435840.L))-real(2854027449912360960.L))+ real(604128201721067520.L))/real(66726301982046616584675.L); _C4x[159] = (_n*(_n*(_n*(_n*(_n*(_n*((real(1822932896645865472.L)- real(24339113121844232192.L)*_n)*_n-real(9913814970209812480.L))+ real(9247924716790882304.L))-real(1332708868547510272.L))+ real(4844914036085415936.L))-real(2997554810854883328.L))- real(50494010328244224.L))-real(22158761866472448.L))/ real(66726301982046616584675.L); _C4x[160] = (_n*(_n*(_n*(_n*(_n*((real(6758659105338556416.L)- real(12991045950855118848.L)*_n)*_n-real(2398014289541398528.L))+ real(6465446490660405248.L))-real(2104051497420128256.L))+ real(1141239772082995200.L))-real(1818198204891070464.L))+ real(460022605476876288.L))/real(66726301982046616584675.L); _C4x[161] = (_n*(_n*(_n*(_n*((real(6668275491371253760.L)- real(4329224030377279488.L)*_n)*_n-real(1505170500759191552.L))+ real(2763025721505054720.L))-real(2216123540377370624.L))+ real(60848441102073856.L))+real(20860324867092480.L))/ real(66726301982046616584675.L); _C4x[162] = (_n*(_n*(_n*((real(308820567264067584.L)- real(126294781074407424.L)*_n)*_n-real(144990888561147904.L))+ real(56899510631006208.L))-real(93587555186442240.L))+ real(27308767935877120.L))/real(5132792460157432044975.L); _C4x[163] = (_n*(_n*((real(388156105125888.L)-real(339203576086528.L)*_n)* _n-real(369629960888320.L))+real(24292538175488.L))+ real(7980991130112.L))/real(15052177302514463475.L); _C4x[164] = (_n*((real(120871642169344.L)-real(354970809581568.L)*_n)*_n- real(191418588348416.L))+real(62763351585792.L))/ real(15052177302514463475.L); _C4x[165] = ((real(1780095066112.L)-real(17835349360640.L)*_n)*_n+ real(558875851776.L))/real(970098745068499725.L); _C4x[166] = (real(365122560.L)-real(1010843648.L)*_n)/ real(110050906984515.L); _C4x[167] = real(71266816.L)/real(128782976258475.L); _C4x[168] = (_n*(_n*(_n*(_n*(_n*(_n*(_n*(_n*(_n*(_n*(_n*(_n*(_n*(_n*(_n* (_n*(_n*((-real(307560448.L)*_n-real(843448320.L))*_n- real(2483486720.L))-real(7947157504.L))-real(28082503680.L))- real(111989620736.L))-real(519951810560.L))-real(2948298178560.L))- real(22161374642176.L))-real(261907154862080.L))- real(8721508256907264.L))+real(271335812437114880.L))- real(2611607194707230720.L))+real(13878826806158426112.L))- real(47914997306975518720.L))+real(114995993536741244928.L))- real(196015898073990758400.L))+real(231198238753937817600.L))- real(161838767127756472320.L))+real(48045883991052702720.L))/ real(76991886902361480674625.L); _C4x[169] = (_n*(_n*(_n*(_n*(_n*(_n*(_n*(_n*(_n*(_n*(_n*(_n*(_n*(_n*(_n* (_n*((-real(16500916224.L)*_n-real(51019251712.L))*_n- real(173614825472.L))-real(664185077760.L))-real(2945088749568.L))- real(15865958105088.L))-real(112611277406208.L))- real(1247523235954688.L))-real(38601085285826560.L))+ real(1104095802036584448.L))-real(9644050019193454592.L))+ real(45774351558141280256.L))-real(138404521698280341504.L))+ real(284185501268958248960.L))-real(404228340917029830656.L))+ real(393238047828436844544.L))-real(249292013960767733760.L))+ real(92479295501575127040.L))-real(15172384418227169280.L))/ real(76991886902361480674625.L); _C4x[170] = (_n*(_n*(_n*(_n*(_n*(_n*(_n*(_n*(_n*(_n*(_n*(_n*(_n*(_n*(_n* ((-real(607647105024.L)*_n-real(2240944275456.L))*_n- real(9542163824640.L))-real(49142394650624.L))-real(331645493903360.L))- real(3470695476756480.L))-real(100638372204969984.L))+ real(2670416652783452160.L))-real(21356072595758186496.L))+ real(91151861395235536896.L))-real(241402627042936160256.L))+ real(415858956705852162048.L))-real(455926534694557122560.L))+ real(269248315708683845632.L))+real(6634384242504302592.L))- real(148368956696005312512.L))+real(111578280442117816320.L))- real(29983521588401310720.L))/real(76991886902361480674625.L); _C4x[171] = (_n*(_n*(_n*(_n*(_n*(_n*(_n*(_n*(_n*(_n*(_n*(_n*(_n*(_n*((- real(23257096912896.L)*_n-real(115073105264640.L))*_n- real(742550052798464.L))-real(7386934195257344.L))- real(202127069637771264.L))+real(5013321382993330176.L))- real(36995137120333987840.L))+real(142988907191875928064.L))- real(332642007735974494208.L))+real(474552716780461096960.L))- real(366256832079401582592.L))+real(24921150773070397440.L))+ real(247405782807496097792.L))-real(247018160218300219392.L))+ real(105077924164108550144.L))-real(16083355739404369920.L))- real(753907300284579840.L))/real(76991886902361480674625.L); _C4x[172] = (_n*(_n*(_n*(_n*(_n*(_n*(_n*(_n*(_n*(_n*(_n*(_n*(_n*((- real(1403304034959360.L)*_n-real(13339247254175744.L))*_n- real(346427973580881920.L))+real(8082921585204264960.L))- real(55413792856169775104.L))+real(195214468459530813440.L))- real(400241050095776956416.L))+real(465979428121331367936.L))- real(208812683675222409216.L))-real(186220000330419535872.L))+ real(325905618715333099520.L))-real(164744371147807653888.L))+ real(3473396570417528832.L))+real(15399350955084873728.L))+ real(6701398224751820800.L))-real(4963223060206817280.L))/ real(76991886902361480674625.L); _C4x[173] = (_n*(_n*(_n*(_n*(_n*(_n*(_n*(_n*(_n*(_n*(_n*(_n* ((real(11777061016963121152.L)-real(533661238691889152.L)*_n)*_n- real(75455325407142739968.L))+real(243704846349755219968.L))- real(441635765669561630720.L))+real(410731223629459095552.L))- real(43248980294465748992.L))-real(310798436837274681344.L))+ real(283640903619160571904.L))-real(50197044714049372160.L))- real(32407633826555101184.L))-real(20076464750566834176.L))+ real(35911742032885841920.L))-real(12016300265072230400.L))+ real(628256083570483200.L))/real(76991886902361480674625.L); _C4x[174] = (_n*(_n*(_n*(_n*(_n*(_n*(_n*(_n*(_n*(_n*(_n* ((real(286148909711074787328.L)-real(96132830538509320192.L)*_n)*_n- real(459322475079133298688.L))+real(329693772827152875520.L))+ real(98322740978987040768.L))-real(354818048538882080768.L))+ real(193586738875038695424.L))+real(21194418143702286336.L))- real(8049696257981808640.L))-real(53828802438319046656.L))+ real(27639577808223338496.L))+real(2084216844983992320.L))- real(204247287383982080.L))-real(1488316997975592960.L))/ real(76991886902361480674625.L); _C4x[175] = (_n*(_n*(_n*(_n*(_n*(_n*(_n*(_n*(_n*(_n* ((real(238885037369572982784.L)-real(457820427413996175360.L)*_n)*_n+ real(204486446203126415360.L))-real(343424793380901617664.L))+ real(103809582276483743744.L))+real(42369395291493236736.L))+ real(31628418163578765312.L))-real(57367117193223864320.L))+ real(5618770750732238848.L))+real(1264987381938782208.L))+ real(12530347452590456832.L))-real(7054731123364986880.L))+ real(713654185252700160.L))/real(76991886902361480674625.L); _C4x[176] = (_n*(_n*(_n*(_n*(_n*(_n*(_n*(_n*(_n*(_n* (real(275417027187888226304.L)*_n-real(301342817914012303360.L))+ real(35131687135579078656.L))+real(30981824048207495168.L))+ real(60082166880455229440.L))-real(40510412698523271168.L))- real(6350757773743882240.L))-real(11380796165109317632.L))+ real(17067163629224067072.L))-real(2218724301039468544.L))- real(576215887400796160.L))-real(530243941500672000.L))/ real(76991886902361480674625.L); _C4x[177] = (_n*(_n*(_n*(_n*(_n*(_n*(_n*(_n*((real(5655004308495138816.L)- real(8356947575790632960.L)*_n)*_n+real(70887283939275177984.L))- real(19132197487023489024.L))-real(4646382539356766208.L))- real(22374995209410314240.L))+real(11881542816186236928.L))+ real(615872365157941248.L))+real(4945999768685903872.L))- real(4202199566240972800.L))+real(600651950866329600.L))/ real(76991886902361480674625.L); _C4x[178] = (_n*(_n*(_n*(_n*(_n*(_n*(_n*(_n*(real(67558047217549443072.L)* _n-real(2743652916231405568.L))+real(4821533341629415424.L))- real(25890278658092040192.L))+real(4397696767809945600.L))- real(2270215222544826368.L))+real(9203535351495131136.L))- real(2762827619509207040.L))-real(337292092713074688.L))- real(196019184505116672.L))/real(76991886902361480674625.L); _C4x[179] = (_n*(_n*(_n*(_n*(_n*(_n*(_n*(real(15637559539358760960.L)*_n- real(22863959879354155008.L))-real(161048855052288000.L))- real(7682043733328527360.L))+real(9241258915046359040.L))- real(738932767847350272.L))+real(2253179206024298496.L))- real(2618166617633193984.L))+real(476795427747545088.L))/ real(76991886902361480674625.L); _C4x[180] = (_n*(_n*(_n*(_n*(_n*((-real(592800441219416064.L)*_n- real(12126096896479985664.L))*_n+real(6529775616064225280.L))- real(874934373083774976.L))+real(5045973283482894336.L))- real(2379468164346413056.L))-real(139146139282440192.L))- real(64598143648862208.L))/real(76991886902361480674625.L); _C4x[181] = (_n*(_n*(_n*(_n*(_n*(real(3435305292766642176.L)*_n- real(2909952940750929920.L))+real(6181581113329188864.L))- real(1277783622080790528.L))+real(1192234787840983040.L))- real(1708480029636165632.L))+real(374926464594468864.L))/ real(76991886902361480674625.L); _C4x[182] = (_n*(_n*(_n*(_n*(real(5623558958487961600.L)*_n- real(868119664699375616.L))+real(2923396157365026816.L))- real(1876131005819518976.L))-real(23107849159442432.L))- real(9783576752345088.L))/real(76991886902361480674625.L); _C4x[183] = (_n*(_n*(_n*(real(911117337493504.L)*_n- real(303923513524224.L))+real(163915625398272.L))- real(262220129763328.L))+real(66863037136896.L))/ real(17367896887516688625.L); _C4x[184] = (_n*(_n*(real(12647945517072384.L)*_n- real(10109638066176000.L))+real(263225254150144.L))+ real(92573294601216.L))/real(538404803513017347375.L); _C4x[185] = (_n*(real(94119501758464.L)*_n-real(155024489185280.L))+ real(44741643048960.L))/real(14551481176027495875.L); _C4x[186] = (real(15683878912.L)*_n+real(5250319360.L))/ real(18158399652444975.L); _C4x[187] = real(319913984.L)/real(128782976258475.L); _C4x[188] = (_n*(_n*(_n*(_n*(_n*(_n*(_n*(_n*(_n*(_n*(_n*(_n*(_n*(_n*(_n* (_n*(_n*(real(276037632.L)*_n+real(955908096.L))+real(3667918848.L))+ real(15942942720.L))+real(81013768192.L))+real(505096044544.L))+ real(4196182523904.L))+real(55133175939072.L))+ real(2054963830456320.L))-real(72129230449016832.L))+ real(790750081959591936.L))-real(4843344252002500608.L))+ real(19571064528499900416.L))-real(56176203739212677120.L))+ real(118480720613612191744.L))-real(184556507109665144832.L))+ real(205062785677405716480.L))-real(138718943252362690560.L))+ real(40459691781939118080.L))/real(87257471822676344764575.L); _C4x[189] = (_n*(_n*(_n*(_n*(_n*(_n*(_n*(_n*(_n*(_n*(_n*(_n*(_n*(_n*(_n* (_n*(real(24947195904.L)*_n+real(104111013888.L))+real(505867141120.L))+ real(3001524682752.L))+real(23599806676992.L))+real(291556978327552.L))+ real(10139375705260032.L))-real(328994697149153280.L))+ real(3296983969584119808.L))-real(18208623508907360256.L))+ real(65236881761666334720.L))-real(162630933523022741504.L))+ real(290600655120150036480.L))-real(373355692543690407936.L))+ real(337214358669511622656.L))-real(202650282316495060992.L))+ real(72375100827319664640.L))-real(11559911937696890880.L))/ real(87257471822676344764575.L); _C4x[190] = (_n*(_n*(_n*(_n*(_n*(_n*(_n*(_n*(_n*(_n*(_n*(_n*(_n*(_n*(_n* (real(1785062227968.L)*_n+real(10133931294720.L))+ real(75861675999232.L))+real(887077614911488.L))+ real(28992109541326848.L))-real(876325163382079488.L))+ real(8090109358186168320.L))-real(40561257005671514112.L))+ real(129281884501668003840.L))-real(278215799106755887104.L))+ real(408027042291149438976.L))-real(387873053022743429120.L))+ real(187671352785076486144.L))+real(44589717291314184192.L))- real(141533530506758455296.L))+real(96500134436426219520.L))- real(25130243342819328000.L))/real(87257471822676344764575.L); _C4x[191] = (_n*(_n*(_n*(_n*(_n*(_n*(_n*(_n*(_n*(_n*(_n*(_n*(_n*(_n* (real(183355364081664.L)*_n+real(2040474989756416.L))+ real(63051054530953216.L))-real(1786942720755892224.L))+ real(15300265488609181696.L))-real(70084254776280743936.L))+ real(199560718281966354432.L))-real(369477497974761193472.L))+ real(431221556043098619904.L))-real(253672955086849966080.L))- real(63391798237093953536.L))+real(252627357255187038208.L))- real(208430629635072983040.L))+real(79159688823137370112.L))- real(10186125301622767616.L))-real(904688760341495808.L))/ real(87257471822676344764575.L); _C4x[192] = (_n*(_n*(_n*(_n*(_n*(_n*(_n*(_n*(_n*(_n*(_n*(_n*(_n* (real(115822890136371200.L)*_n-real(3094995547629027328.L))+ real(24723587148946604032.L))-real(104065332008695889920.L))+ real(265803369098419109888.L))-real(421851123014635618304.L))+ real(374519981509846237184.L))-real(63913952851496796160.L))- real(251310020677002592256.L))+real(285262036379621654528.L))- real(109433609381780389888.L))-real(12093228440466489344.L))+ real(12188046889208250368.L))+real(7634972322268971008.L))- real(4489936810583719936.L))/real(87257471822676344764575.L); _C4x[193] = (_n*(_n*(_n*(_n*(_n*(_n*(_n*(_n*(_n*(_n*(_n*(_n* (real(35967097995930370048.L)*_n-real(139835176343423680512.L))+ real(321551406140639150080.L))-real(435083276244969586688.L))+ real(270381974274631532544.L))+real(110488073189453725696.L))- real(329928754168770068480.L))+real(204912754448674062336.L))- real(2257252858190102528.L))-real(28230593464544264192.L))- real(26525908292341334016.L))+real(32108269919206899712.L))- real(9280877470239162368.L))+real(336225324724617216.L))/ real(87257471822676344764575.L); _C4x[194] = (_n*(_n*(_n*(_n*(_n*(_n*(_n*(_n*(_n*(_n*(_n* (real(363842629597642358784.L)*_n-real(416193006026396532736.L))+ real(148788575136578011136.L))+real(237041576971503403008.L))- real(320916337128487518208.L))+real(98062347555880042496.L))+ real(44440889283638722560.L))+real(10067255815659585536.L))- real(53427383386073202688.L))+real(19036217883544780800.L))+ real(3582825409059749888.L))+real(355420097170374656.L))- real(1452913824234012672.L))/real(87257471822676344764575.L); _C4x[195] = (_n*(_n*(_n*(_n*(_n*(_n*(_n*(_n*(_n*(_n* (real(30511855713581006848.L)*_n+real(310370866219193466880.L))- real(262823594717752066048.L))+real(13648539574085877760.L))+ real(37475487660713181184.L))+real(50436855393397243904.L))- real(45981963324560506880.L))-real(2420681743504769024.L))- real(616311858139758592.L))+real(12450050748250587136.L))- real(5906771916900270080.L))+real(498505012547584000.L))/ real(87257471822676344764575.L); _C4x[196] = (_n*(_n*(_n*(_n*(_n*(_n*(_n*(_n*((- real(187684170744439767040.L)*_n-real(34197579604009156608.L))*_n+ real(5020232442064142336.L))+real(68754014988700221440.L))- real(21871620166116704256.L))-real(8569339763401424896.L))- real(14873419657564389376.L))+real(14649475096306778112.L))- real(745025122061516800.L))-real(411903397122015232.L))- real(563208167821049856.L))/real(87257471822676344764575.L); _C4x[197] = (_n*(_n*(_n*(_n*(_n*(_n*(_n*((real(65114834110003544064.L)- real(30188401165698859008.L)*_n)*_n-real(268375796035878912.L))- real(40975114888544256.L))-real(23791816763013332992.L))+ real(7379373053645422592.L))+real(949078329147260928.L))+ real(5237349808478355456.L))-real(3698499726010220544.L))+ real(455104982316515328.L))/real(87257471822676344764575.L); _C4x[198] = (_n*(_n*(_n*(_n*(_n*(_n*(_n*(real(10483623998426972160.L)*_n+ real(13521235277915357184.L))-real(22960109307694153728.L))- real(10641874446450688.L))-real(3596445517682311168.L))+ real(8763175389458595840.L))-real(1822001320987459584.L))- real(329006490341867520.L))-real(233643343511617536.L))/ real(87257471822676344764575.L); _C4x[199] = (_n*(_n*(_n*(_n*(_n*((-real(15814081220999380992.L)*_n- real(2326930085278384128.L))*_n-real(9660863485571497984.L))+ real(7470095560500838400.L))-real(5586431887540224.L))+ real(2445895936924188672.L))-real(2383766792232763392.L))+ real(378295475923943424.L))/real(87257471822676344764575.L); _C4x[200] = (_n*(_n*(_n*(_n*((real(3827411013507481600.L)- real(13214027205766545408.L)*_n)*_n-real(979582502360317952.L))+ real(5094849246163107840.L))-real(1824353970541297664.L))- real(180869902013825024.L))-real(95539345357209600.L))/ real(87257471822676344764575.L); _C4x[201] = (_n*(_n*(_n*((real(5609365261323862016.L)- real(3839901122350809088.L)*_n)*_n-real(646145409716584448.L))+ real(1279609322574184448.L))-real(1593167327803211776.L))+ real(306968393988472832.L))/real(87257471822676344764575.L); _C4x[202] = (_n*(_n*((real(276571089505615872.L)- real(51553415930576896.L)*_n)*_n-real(140985119656640512.L))- real(6829032790294528.L))-real(3039228960768000.L))/ real(7932497438425122251325.L); _C4x[203] = (_n*((real(5254038644850688.L)-real(6219477419556864.L)*_n)* _n-real(7711766672310272.L))+real(1737170897240064.L))/ real(610192110648086327025.L); _C4x[204] = ((-real(2603006914985984.L)*_n-real(23041190002688.L))*_n- real(9413532237824.L))/real(181408465327809448575.L); _C4x[205] = (real(47654830080.L)-real(185838075904.L)*_n)/ real(20579519606104305.L); _C4x[206] = real(223215616.L)/real(2189310596394075.L); _C4x[207] = (_n*(_n*(_n*(_n*(_n*(_n*(_n*(_n*(_n*(_n*(_n*(_n*(_n*(_n*(_n* ((-real(508035072.L)*_n-real(2390753280.L))*_n-real(13198950400.L))- real(89752862720.L))-real(816751050752.L))-real(11811476733952.L))- real(487223415275520.L))+real(19046006233497600.L))- real(234265876672020480.L))+real(1624243411592675328.L))- real(7512125778616123392.L))+real(25040419262053744640.L))- real(62601048155134361600.L))+real(119423538019025551360.L))- real(173164130127587049472.L))+real(183350255429209817088.L))- real(120625168045532774400.L))+real(34679735813090672640.L))/ real(97523056742991208854525.L); _C4x[208] = (_n*(_n*(_n*(_n*(_n*(_n*(_n*(_n*(_n*(_n*(_n*(_n*(_n*(_n*((- real(29964107776.L)*_n-real(194248704000.L))*_n-real(1676794658816.L))- real(22869029421056.L))-real(883598982905856.L))+ real(32091782286147584.L))-real(363202909569024000.L))+ real(2290091789515751424.L))-real(9495576867772563456.L))+ real(27882845232340926464.L))-real(60097006228928987136.L))+ real(96309304854052864000.L))-real(114030216947198590976.L))+ real(96943813215444271104.L))-real(55755633229935149056.L))+ real(19300026887285243904.L))-real(3015629201138319360.L))/ real(32507685580997069618175.L); _C4x[209] = (_n*(_n*(_n*(_n*(_n*(_n*(_n*(_n*(_n*(_n*(_n*(_n*(_n*((- real(17507396616192.L)*_n-real(226472133394432.L))*_n- real(8246941263069184.L))+real(280127911143407616.L))- real(2936888066985951232.L))+real(16946415846485393408.L))- real(63275465759427919872.L))+real(163595543569252745216.L))- real(300073764383376277504.L))+real(385976458404820942848.L))- real(323406645699909517312.L))+real(124771537065038839808.L))+ real(67995561911851155456.L))-real(132622981694812585984.L))+ real(84169561702882869248.L))-real(21410967328082067456.L))/ real(97523056742991208854525.L); _C4x[210] = (_n*(_n*(_n*(_n*(_n*(_n*(_n*(_n*(_n*(_n*(_n*(_n* ((real(616804785697325056.L)-real(19306773085159424.L)*_n)*_n- real(6025733289954770944.L))+real(32001340193244184576.L))- real(108084904604387508224.L))+real(246171939711657967616.L))- real(379752583817754312704.L))+real(370399618720067485696.L))- real(155844072978969001984.L))-real(121313588987417329664.L))+ real(243746625565487005696.L))-real(174718794881484980224.L))+ real(60120859926725656576.L))-real(6359395832592072704.L))- real(938195751465254912.L))/real(97523056742991208854525.L); _C4x[211] = (_n*(_n*(_n*(_n*(_n*(_n*(_n*(_n*(_n*(_n*(_n* ((real(51373746005049606144.L)-real(10456599624384249856.L)*_n)*_n- real(157611347412635877376.L))+real(316317997999324135424.L))- real(404199497923589308416.L))+real(268628438983223803904.L))+ real(48354954402349973504.L))-real(276628362249624354816.L))+ real(237995644082980388864.L))-real(67827216051387498496.L))- real(19942287700460568576.L))+real(8846143827894861824.L))+ real(8103697483973525504.L))-real(4058967579922956288.L))/ real(97523056742991208854525.L); _C4x[212] = (_n*(_n*(_n*(_n*(_n*(_n*(_n*(_n*(_n*(_n* ((real(365704313453078904832.L)-real(206894718449275109376.L)*_n)*_n- real(378355260748577374208.L))+real(126798896006978076672.L))+ real(210484703195796865024.L))-real(307158877486350073856.L))+ real(133609892540477079552.L))+real(25257545305541312512.L))- real(19823325441381367808.L))-real(30462010189242433536.L))+ real(28304797805527957504.L))-real(7196660625255170048.L))+ real(150054667702173696.L))/real(97523056742991208854525.L); _C4x[213] = (_n*(_n*(_n*(_n*(_n*(_n*(_n*(_n*(_n*((- real(316280474750539005952.L)*_n-real(16506738140957900800.L))*_n+ real(302475017617010065408.L))-real(252550415242485563392.L))+ real(26656308906358734848.L))+real(46363245865927180288.L))+ real(25775342097543987200.L))-real(49510038562184101888.L))+ real(12050517427519750144.L))+real(4195639799346888704.L))+ real(815200122201178112.L))-real(1394136822006906880.L))/ real(97523056742991208854525.L); _C4x[214] = (_n*(_n*(_n*(_n*(_n*(_n*(_n*(_n*(_n* (real(329133446088160706560.L)*_n-real(163807190522737459200.L))- real(38038366367114067968.L))+real(17122524646869041152.L))+ real(60262956334873313280.L))-real(33082835687306166272.L))- real(7086096755808272384.L))-real(2735322552694996992.L))+ real(12049598737807310848.L))-real(4941712550027853824.L))+ real(346176789274165248.L))/real(97523056742991208854525.L); _C4x[215] = (_n*(_n*(_n*(_n*(_n*(_n*(_n*((-real(56736646042272399360.L)* _n-real(25695486169747292160.L))*_n+real(65009144065716387840.L))- real(6036013701613486080.L))-real(7038326576975970304.L))- real(17255296659229769728.L))+real(12097546741958049792.L))+ real(269660785965268992.L))-real(231461455444574208.L))- real(575402967885512704.L))/real(97523056742991208854525.L); _C4x[216] = (_n*(_n*(_n*(_n*(_n*(_n*(_n*(real(47970221770628136960.L)*_n+ real(11183652170713006080.L))+real(6654450689051197440.L))- real(22998474513203593216.L))+real(3559346603691081728.L))+ real(742072554564354048.L))+real(5394335140128227328.L))- real(3242594944105316352.L))+real(345937043493945344.L))/ real(97523056742991208854525.L); _C4x[217] = (_n*(_n*(_n*(_n*(_n*(_n*(real(21206076828361949184.L)*_n- real(17866586398261248000.L))-real(2689482293101723648.L))- real(5075995234335195136.L))+real(8063468665972457472.L))- real(1073179604510834688.L))-real(285292882316230656.L))- real(257533821328064512.L))/real(97523056742991208854525.L); _C4x[218] = (_n*(_n*(_n*(_n*((-real(2168602113922301952.L)*_n- real(11032586230347857920.L))*_n+real(5592120435094323200.L))+ real(376073112627707904.L))+real(2609094050095038464.L))- real(2158630016898826240.L))+real(301421520076013568.L))/ real(97523056742991208854525.L); _C4x[219] = (_n*(_n*(_n*(_n*(real(1508398731138433024.L)*_n- real(1433188842334060544.L))+real(4994077430489022464.L))- real(1342770705408720896.L))-real(191596198836568064.L))- real(117789535196512256.L))/real(97523056742991208854525.L); _C4x[220] = (_n*(_n*(_n*(real(439902674335301632.L)*_n- real(18168502642802688.L))+real(125141764267835392.L))- real(134254942169858048.L))+real(22938749427449856.L))/ real(8865732431181018986775.L); _C4x[221] = (_n*(_n*(real(3097302916756144128.L)*_n- real(1250796651410358272.L))-real(104045262882209792.L))- real(51553400218484736.L))/real(97523056742991208854525.L); _C4x[222] = (_n*(real(1654857408708608.L)*_n-real(2162255416262656.L))+ real(434335999066112.L))/real(202750637719316442525.L); _C4x[223] = (-real(51213500416.L)*_n-real(22070231040.L))/ real(115003197798818175.L); _C4x[224] = real(482213888.L)/real(271875172101225.L); _C4x[225] = (_n*(_n*(_n*(_n*(_n*(_n*(_n*(_n*(_n*(_n*(_n*(_n*(_n*(_n*(_n* (real(2231369728.L)*_n+real(16436428800.L))+real(162611068928.L))+ real(2566931873792.L))+real(116104303214592.L))- real(5002160396828672.L))+real(68211278138572800.L))- real(527955292792553472.L))+real(2748719619618373632.L))- real(10422228557719666688.L))+real(30048503114464493568.L))- real(67416513397837004800.L))+real(118653063580193128448.L))- real(162275513425852366848.L))+real(165122452257884864512.L))- real(106150147880068841472.L))+real(30156292011383193600.L))/ real(107788641663306072944475.L); _C4x[226] = (_n*(_n*(_n*(_n*(_n*(_n*(_n*(_n*(_n*(_n*(_n*(_n*(_n*(_n* (real(1087553667072.L)*_n+real(16236561825792.L))+ real(690353678057472.L))-real(27760775846166528.L))+ real(350364085667233792.L))-real(2484709491661078528.L))+ real(11709732673365737472.L))-real(39599440373689090048.L))+ real(99995087980359319552.L))-real(192160489771502665728.L))+ real(281993644612666785792.L))-real(312178113804572295168.L))+ real(252367351949203341312.L))-real(139906708317025599488.L))+ real(47177843502252818432.L))-real(7237510082731966464.L))/ real(107788641663306072944475.L); _C4x[227] = (_n*(_n*(_n*(_n*(_n*(_n*(_n*(_n*(_n*(_n*(_n*(_n*(_n* (real(2321342460329984.L)*_n-real(87624051406667776.L))+ real(1029554699684020224.L))-real(6727903561715286016.L))+ real(28834044814907408384.L))-real(87131527579284013056.L))+ real(191789940123405123584.L))-real(309246701905553391616.L))+ real(355959190740579385344.L))-real(265399658566779928576.L))+ real(76703950634970251264.L))+real(81915983603542523904.L))- real(123166183203322986496.L))+real(74020409632844939264.L))- real(18495859100315025408.L))/real(107788641663306072944475.L); _C4x[228] = (_n*(_n*(_n*(_n*(_n*(_n*(_n*(_n*(_n*(_n*(_n*(_n* (real(2278819789407256576.L)*_n-real(13791909517065191424.L))+ real(53989401256123170816.L))-real(146092539328105283584.L))+ real(279136549919162105856.L))-real(369063669832597110784.L))+ real(303155228066935996416.L))-real(75427203867469676544.L))- real(156873650151436058624.L))+real(227778831321489473536.L))- real(146142064921074991104.L))+real(45999470831097348096.L))- real(3830903866145112064.L))-real(915087481724731392.L))/ real(107788641663306072944475.L); _C4x[229] = (_n*(_n*(_n*(_n*(_n*(_n*(_n*(_n*(_n*(_n*(_n* (real(85484487412933459968.L)*_n-real(207519696313245499392.L))+ real(342343487242872291328.L))-real(358724413380621238272.L))+ real(164770992079469805568.L))+real(128236553616692871168.L))- real(276189113597162422272.L))+real(191834765719799595008.L))- real(37500978531225567232.L))-real(23148176332242812928.L))+ real(5803604673929674752.L))+real(8264113601656127488.L))- real(3675109402410614784.L))/real(107788641663306072944475.L); _C4x[230] = (_n*(_n*(_n*(_n*(_n*(_n*(_n*(_n*(_n*(_n* (real(372550883422473551872.L)*_n-real(291388465640112128000.L))+ real(975048550637371392.L))+real(263490909276794257408.L))- real(263072399029774057472.L))+real(75626181247843172352.L))+ real(38529837946214809600.L))-real(10437661129705521152.L))- real(32398994919785496576.L))+real(24740281721263489024.L))- real(5600848242657984512.L))+real(30413464690753536.L))/ real(107788641663306072944475.L); _C4x[231] = (_n*(_n*(_n*(_n*(_n*(_n*(_n*(_n* ((real(44497094977089699840.L)-real(20453173018838958080.L)*_n)*_n- real(25084538434617344000.L))-real(2816909285156454400.L))+ real(5255989055182602240.L))+real(5313795830354804736.L))- real(6245443876828479488.L))+real(945839663757656064.L))+ real(610102068278984704.L))+real(168007395832758272.L))- real(189210938594295808.L))/real(15398377380472296134925.L); _C4x[232] = (_n*(_n*(_n*(_n*(_n*(_n*(_n*((-real(74424581090432778240.L)* _n-real(57976932679695728640.L))*_n-real(6807209333374320640.L))+ real(62100772675576135680.L))-real(20885050910872436736.L))- real(9203592189655908352.L))-real(4716394625768620032.L))+ real(11444151948115181568.L))-real(4136102259035471872.L))+ real(236973593719209984.L))/real(107788641663306072944475.L); _C4x[233] = (_n*(_n*(_n*(_n*(_n*(_n*((real(53404883454205624320.L)- real(49919870083698524160.L)*_n)*_n+real(5371662883105013760.L))- real(3493811236130258944.L))-real(18479082265901006848.L))+ real(9639972225697185792.L))+real(935416409056346112.L))- real(56939893062893568.L))-real(574209275660468224.L))/ real(107788641663306072944475.L); _C4x[234] = (_n*(_n*(_n*(_n*(_n*(_n*(real(15457734150169034752.L)*_n+ real(13197922425624330240.L))-real(20617355585946386432.L))+ real(583624492723470336.L))+real(229369263113109504.L))+ real(5430891989732163584.L))-real(2836523797304049664.L))+ real(263205781933129728.L))/real(107788641663306072944475.L); _C4x[235] = (_n*(_n*(_n*(_n*((-real(11962142467521773568.L)*_n- real(3835029043890094080.L))*_n-real(6418457916310814720.L))+ real(7208879758491254784.L))-real(493610566435209216.L))- real(223724545077411840.L))-real(271643143953448960.L))/ real(107788641663306072944475.L); _C4x[236] = (_n*(_n*(_n*((real(3800113671217086464.L)- real(11642532714023747584.L)*_n)*_n+real(495534653961142272.L))+ real(2729202525616996352.L))-real(1947332406553870336.L))+ real(240934694030671872.L))/real(107788641663306072944475.L); _C4x[237] = (_n*(_n*((real(4768962585824329728.L)- real(2057594272357548032.L)*_n)*_n-real(935950551405821952.L))- real(182507675768061952.L))-real(133472129809514496.L))/ real(107788641663306072944475.L); _C4x[238] = (_n*(_n*(real(12188605917167616.L)*_n+ real(209617809536188416.L))-real(194671790054703104.L))+ real(29729696344178688.L))/real(15398377380472296134925.L); _C4x[239] = ((-real(291547312553984.L)*_n-real(34631982252032.L))*_n- real(19399622787072.L))/real(32013258587260490925.L); _C4x[240] = (real(29689380864.L)-real(164450271232.L)*_n)/ real(18158399652444975.L); _C4x[241] = -real(1325662208.L)/real(4764970121563575.L); _C4x[242] = (_n*(_n*(_n*(_n*(_n*(_n*(_n*(_n*(_n*(_n*(_n*(_n*(_n*((- real(32992395264.L)*_n-real(564536541184.L))*_n-real(27783262633984.L))+ real(1307950517846016.L))-real(19582925808861184.L))+ real(167345002366631936.L))-real(968210370835513344.L))+ real(4111905772437241856.L))-real(13410419962380550144.L))+ real(34483937046121414656.L))-real(70883648372582907904.L))+ real(116749538496018907136.L))-real(152081635672445681664.L))+ real(149667641455422734336.L))-real(94355687004505636864.L))+ real(26537536970017210368.L))/real(118054226583620937034425.L); _C4x[243] = (_n*(_n*(_n*(_n*(_n*(_n*(_n*(_n*(_n*(_n*(_n*(_n* ((real(7907221388132352.L)-real(179214691074048.L)*_n)*_n- real(110141401777307648.L))+real(868043160343805952.L))- real(4583930581544337408.L))+real(17547318819586834432.L))- real(50803334744446599168.L))+real(113825027973376376832.L))- real(199240525155368173568.L))+real(271814562598839386112.L))- real(284412409569249067008.L))+real(220331835808276283392.L))- real(118390672904429764608.L))+real(39043732553588539392.L))- real(5897230437781602304.L))/real(118054226583620937034425.L); _C4x[244] = (_n*(_n*(_n*(_n*(_n*(_n*(_n*(_n*(_n*(_n*(_n* ((real(2561037277769760768.L)-real(350567539966738432.L)*_n)*_n- real(12399283285044232192.L))+real(42905064156491153408.L))- real(110172130260069384192.L))+real(213062787688508162048.L))- real(308515725044919304192.L))+real(322295352315806220288.L))- real(214726861520594010112.L))+real(40166016800195084288.L))+ real(89623113361646419968.L))-real(113906177718655909888.L))+ real(65597668940840960000.L))-real(16166545510470254592.L))/ real(118054226583620937034425.L); _C4x[245] = (_n*(_n*(_n*(_n*(_n*(_n*(_n*(_n*(_n*(_n* ((real(79209066571491180544.L)-real(25253493510248595456.L)*_n)*_n- real(180253741898516135936.L))+real(297879468130890153984.L))- real(343634061029965561856.L))+real(236581088693378351104.L))- real(11837457009513332736.L))-real(176544610687800836096.L))+ real(208810886589205970944.L))-real(122271218249773350912.L))+ real(35417970488494784512.L))-real(2137291322581581824.L))- real(865889230019100672.L))/real(118054226583620937034425.L); _C4x[246] = (_n*(_n*(_n*(_n*(_n*(_n*(_n*(_n*(_n* ((real(344914019934535680000.L)-real(247585518351380643840.L)*_n)*_n- real(296981563986159861760.L))+real(72214116350495293440.L))+ real(180229683679120588800.L))-real(260383131355190394880.L))+ real(150307258006241280000.L))-real(15933829848980520960.L))- real(23633470143498027008.L))+real(3200779427592011776.L))+ real(8224755000291622912.L))-real(3336535979309137920.L))/ real(118054226583620937034425.L); _C4x[247] = (_n*(_n*(_n*(_n*(_n*(_n*(_n*(_n*((- real(192533439800284282880.L)*_n-real(97694516686796881920.L))*_n+ real(280623774829473955840.L))-real(211350383383229235200.L))+ real(31741199886172815360.L))+real(42535296349971152896.L))- real(1658370534385123328.L))-real(32878591046534037504.L))+ real(21517324801665925120.L))-real(4371544703233949696.L))- real(46514710703505408.L))/real(118054226583620937034425.L); _C4x[248] = (_n*(_n*(_n*(_n*(_n*(_n*(_n*(_n* (real(283747078852281630720.L)*_n-real(104725943690503127040.L))- real(45187191658543841280.L))+real(22374117202030755840.L))+ real(44256806306916073472.L))-real(37202728358370082816.L))+ real(2539421275797848064.L))+real(4034441792987332608.L))+ real(1449789070409465856.L))-real(1251078097345183744.L))/ real(118054226583620937034425.L); _C4x[249] = (_n*(_n*(_n*(_n*(_n*(_n*((-real(56321598004490403840.L)*_n- real(27898989264249028608.L))*_n+real(58187271506195644416.L))- real(10488728438997778432.L))-real(9555932426178396160.L))- real(6392177544078032896.L))+real(10722699343053193216.L))- real(3465676549913575424.L))+real(157885691632549888.L))/ real(118054226583620937034425.L); _C4x[250] = (_n*(_n*(_n*(_n*(_n*(_n*(real(38349135283249741824.L)*_n+ real(12282222191403073536.L))+real(799906936383340544.L))- real(18709758659251929088.L))+real(7403284957646290944.L))+ real(1343542825945399296.L))+real(101301221628837888.L))- real(564496696970838016.L))/real(118054226583620937034425.L); _C4x[251] = (_n*(_n*(_n*(_n*(_n*(real(18385522823692025856.L)*_n- real(17311052281214402560.L))-real(1558081911333584896.L))- real(425440445347135488.L))+real(5369899160881332224.L))- real(2478526128738795520.L))+real(199935069899980800.L))/ real(118054226583620937034425.L); _C4x[252] = (_n*(_n*(_n*((-real(3802164536732024832.L)*_n- real(7479383126163062784.L))*_n+real(6285211757526908928.L))- real(56677317811896320.L))-real(155129966973943808.L))- real(278790769507303424.L))/real(118054226583620937034425.L); _C4x[253] = (_n*(_n*(_n*(real(2211182557075079168.L)*_n+ real(432380266489577472.L))+real(2803723207373225984.L))- real(1752158299903492096.L))+real(192986004326449152.L))/ real(118054226583620937034425.L); _C4x[254] = (_n*(_n*(real(4452041207794630656.L)*_n- real(599668749687062528.L))-real(161334163675283456.L))- real(144190013656006656.L))/real(118054226583620937034425.L); _C4x[255] = (_n*(real(3209073398906880.L)*_n-real(2605184622526464.L))+ real(357815264739328.L))/real(245434982502330430425.L); _C4x[256] = (-real(5140337655808.L)*_n-real(3300780933120.L))/ real(5150932701410224575.L); _C4x[257] = real(5125439488.L)/real(4059048622072675.L); _C4x[258] = (_n*(_n*(_n*(_n*(_n*(_n*(_n*(_n*(_n*(_n*(_n*(_n*(_n* (real(6671795486720.L)*_n-real(340738126643200.L))+ real(5556652526796800.L))-real(51954701125550080.L))+ real(330620825344409600.L))-real(1553917879118725120.L))+ real(5650610469522636800.L))-real(16354170685829939200.L))+ real(38315485606801571840.L))-real(73250193071826534400.L))+ real(114116090259266600960.L))-real(142645112824083251200.L))+ real(136443151396949196800.L))-real(84594753866108502016.L))+ real(23588921751126409216.L))/real(128319811503935801124375.L); _C4x[259] = (_n*(_n*(_n*(_n*(_n*(_n*(_n*(_n*(_n*(_n*(_n*(_n* (real(11324896281886720.L)*_n-real(98216454473646080.L))+ real(574557871270789120.L))-real(2456040416844185600.L))+ real(8019057836535316480.L))-real(20516062627805265920.L))+ real(41684118771324682240.L))-real(67505618830921564160.L))+ real(86595369947260518400.L))-real(86358122358363914240.L))+ real(64500398842194165760.L))-real(33738670163609255936.L))+ real(10915452111755935744.L))-real(1626822189732855808.L))/ real(42773270501311933708125.L); _C4x[260] = (_n*(_n*(_n*(_n*(_n*(_n*(_n*(_n*(_n*(_n*(_n* (real(5082421303600742400.L)*_n-real(19822592539093893120.L))+ real(58166028350049484800.L))-real(131028501134605025280.L))+ real(227570706948670095360.L))-real(300522987672525864960.L))+ real(287800030615107010560.L))-real(171252253497439027200.L))+ real(12501916423594967040.L))+real(93250680571438301184.L))- real(105185265804193562624.L))+real(58546515872145473536.L))- real(14274052761526992896.L))/real(128319811503935801124375.L); _C4x[261] = (_n*(_n*(_n*(_n*(_n*(_n*(_n*(_n*(_n*(_n* (real(105383790898346721280.L)*_n-real(208136914244678451200.L))+ real(303710159217224581120.L))-real(309004903007230361600.L))+ real(174753053390908948480.L))+real(36907004671358402560.L))- real(185217734025622323200.L))+real(189161050019630940160.L))- real(102464139110675120128.L))+real(27409317096350285824.L))- real(992313828341448704.L))-real(806254985527427072.L))/ real(128319811503935801124375.L); _C4x[262] = (_n*(_n*(_n*(_n*(_n*(_n*(_n*(_n*(_n* (real(328074409958965248000.L)*_n-real(228469922819714580480.L))- real(4950401898239754240.L))+real(210076889632934461440.L))- real(236374255355968880640.L))+real(114650922702109409280.L))- real(953987012493312000.L))-real(22586398162745819136.L))+ real(1050078458681491456.L))+real(8059197443692036096.L))- real(3038961099295686656.L))/real(128319811503935801124375.L); _C4x[263] = (_n*(_n*(_n*(_n*(_n*(_n*(_n*((real(273011545894803210240.L)- real(167521473070544977920.L)*_n)*_n-real(160170217749904097280.L))+ real(454830921552494592.L))+real(40895497723801763840.L))+ real(5852613489478074368.L))-real(32357256013314785280.L))+ real(18663711808770015232.L))-real(3418428302623244288.L))- real(95543730093686784.L))/real(128319811503935801124375.L); _C4x[264] = (_n*(_n*(_n*(_n*(_n*(_n*((-real(46646098507207802880.L)*_n- real(55181590728680669184.L))*_n+real(7128506606441988096.L))+ real(47619150534252953600.L))-real(30689497196554878976.L))- real(438064049108811776.L))+real(3630978130237194240.L))+ real(1650971503560228864.L))-real(1177985854434443264.L))/ real(128319811503935801124375.L); _C4x[265] = (_n*(_n*(_n*(_n*(_n*((real(50775488411895595008.L)- real(43492866392894472192.L)*_n)*_n-real(2264894610960547840.L))- real(8777858033372889088.L))-real(7712179646405541888.L))+ real(9948900906005168128.L))-real(2908130381335101440.L))+ real(100147792529326080.L))/real(128319811503935801124375.L); _C4x[266] = (_n*(_n*(_n*(_n*(_n*(real(15383330024249622528.L)*_n+ real(5036585180505047040.L))-real(18179914265933119488.L))+ real(5444073783608475648.L))+real(1565775689892757504.L))+ real(239302712712232960.L))-real(549497872213606400.L))/ real(128319811503935801124375.L); _C4x[267] = (_n*(_n*(_n*((-real(13628378796670320640.L)*_n- real(2963709054448304128.L))*_n-real(1115654555757969408.L))+ real(5235119911608516608.L))-real(2164937980358164480.L))+ real(151159110484623360.L))/real(128319811503935801124375.L); _C4x[268] = (_n*(_n*((real(5355581624668913664.L)- real(8210655445732294656.L)*_n)*_n+real(263609424050913280.L))- real(85997756774088704.L))-real(280996508227076096.L))/ real(128319811503935801124375.L); _C4x[269] = (_n*(_n*(real(83743415950376960.L)*_n+ real(945290515333513216.L))-real(524622164293320704.L))+ real(51572682709270528.L))/real(42773270501311933708125.L); _C4x[270] = ((-real(25148353415217152.L)*_n-real(10257395112476672.L))*_n- real(11627232501956608.L))/real(9870754731071984701875.L); _C4x[271] = (real(2074519535616.L)-real(16716281151488.L)*_n)/ real(1866279964279066875.L); _C4x[272] = -real(8589934592.L)/real(13236028115454375.L); _C4x[273] = (_n*(_n*(_n*(_n*(_n*(_n*(_n*(_n*(_n*(_n*(_n* ((real(15852186076446720.L)-real(1561200143892480.L)*_n)*_n- real(110021720030576640.L))+real(566778557733273600.L))- real(2272266763276124160.L))+real(7302327375998484480.L))- real(19168609361996021760.L))+real(41558833742814904320.L))- real(74732990502430310400.L))+real(111031871603610746880.L))- real(133962366826095575040.L))+real(125031542371022536704.L))- real(76408164782291550208.L))+real(21148688466527125504.L))/ real(138585396424250665214325.L); _C4x[274] = (_n*(_n*(_n*(_n*(_n*(_n*(_n*(_n*(_n*(_n* ((real(2958823112268840960.L)-real(626676031385763840.L)*_n)*_n- real(10753638090040934400.L))+real(30919950241879818240.L))- real(71469587084240486400.L))+real(133804410448442818560.L))- real(202860010974719508480.L))+real(246853222983637401600.L))- real(236174817190289080320.L))+real(170892532815992193024.L))- real(87323616894047485952.L))+real(27784787193560563712.L))- real(4093294541908475904.L))/real(138585396424250665214325.L); _C4x[275] = (_n*(_n*(_n*(_n*(_n*(_n*(_n*(_n*(_n* ((real(73680257925355929600.L)-real(28673750990051082240.L)*_n)*_n- real(148892120936255324160.L))+real(235994934127141847040.L))- real(287512304815806873600.L))+real(254209647654438174720.L))- real(134376047891605094400.L))-real(8359769760187023360.L))+ real(94203796972049006592.L))-real(97139478006830465024.L))+ real(52592632902096781312.L))-real(12714020925624811520.L))/ real(138585396424250665214325.L); _C4x[276] = (_n*(_n*(_n*(_n*(_n*(_n*(_n*(_n* ((real(298838728973588889600.L)-real(228610468883894108160.L)*_n)*_n- real(269577861315837296640.L))+real(119683752606899896320.L))+ real(73206526506833018880.L))-real(186461951913061515264.L))+ real(170093484293994053632.L))-real(86066078878839865344.L))+ real(21290392325330042880.L))-real(214554341263015936.L))- real(744235371256086528.L))/real(138585396424250665214325.L); _C4x[277] = (_n*(_n*(_n*(_n*(_n*(_n*(_n*((-real(160060419859745341440.L)* _n-real(65897571137303347200.L))*_n+real(223302306570499522560.L))- real(208849685534233067520.L))+real(84929820748836503552.L))+ real(9168137573896290304.L))-real(20734355685418991616.L))- real(688244437100265472.L))+real(7816792298515070976.L))- real(2777472995881385984.L))/real(138585396424250665214325.L); _C4x[278] = (_n*(_n*(_n*(_n*(_n*(_n*(_n*(real(249984959643144683520.L)*_n- real(113873120333238632448.L))-real(20504062484885274624.L))+ real(36095124782226341888.L))+real(11917724596746321920.L))- real(31185472098366652416.L))+real(16168657511300202496.L))- real(2674683528184070144.L))-real(126102251054825472.L))/ real(138585396424250665214325.L); _C4x[279] = (_n*(_n*(_n*(_n*(_n*((-real(54742125407367069696.L)*_n- real(6775438503925776384.L))*_n+real(48145735679794479104.L))- real(24593000341698510848.L))-real(2542380373996732416.L))+ real(3150353563947892736.L))+real(1793555262527766528.L))- real(1107424823786602496.L))/real(138585396424250665214325.L); _C4x[280] = (_n*(_n*(_n*(_n*(_n*(real(41679303178092281856.L)*_n+ real(3830125412210442240.L))-real(7342331959281975296.L))- real(8686531211100684288.L))+real(9165926187845812224.L))- real(2444079035601387520.L))+real(57748247858380800.L))/ real(138585396424250665214325.L); _C4x[281] = (_n*(_n*(_n*(_n*(real(8765911069127344128.L)*_n- real(17118224765014769664.L))+real(3775201851733966848.L))+ real(1656694285690470400.L))+real(356504411897331712.L))- real(531367840515620864.L))/real(138585396424250665214325.L); _C4x[282] = (_n*(_n*((-real(3764539380404846592.L)*_n- real(1776277878460121088.L))*_n+real(5047770078955700224.L))- real(1891317913911033856.L))+real(113295579018166272.L))/ real(138585396424250665214325.L); _C4x[283] = (_n*(_n*(real(4462595121208098816.L)*_n+ real(490548487658668032.L))-real(20052314052100096.L))- real(279713923702194176.L))/real(138585396424250665214325.L); _C4x[284] = (_n*(real(72600258860810240.L)*_n-real(36211635924238336.L))+ real(3179186667651072.L))/real(3553471703185914492675.L); _C4x[285] = (-real(19301314592768.L)*_n-real(29359205253120.L))/ real(26202570698478098925.L); _C4x[286] = real(2785017856.L)/real(3260242714754025.L); _C4x[287] = (_n*(_n*(_n*(_n*(_n*(_n*(_n*(_n*(_n*(_n*(_n* (real(35821823081840640.L)*_n-real(200668545967718400.L))+ real(878961399693312000.L))-real(3103409865071001600.L))+ real(9011382719317278720.L))-real(21799594960701358080.L))+ real(44254816837514035200.L))-real(75514171587821568000.L))+ real(107689775133936844800.L))-real(125997036906706108416.L))+ real(115108404087608049664.L))-real(69461967983901409280.L))+ real(19102041195572887552.L))/real(148850981344565529304275.L); _C4x[288] = (_n*(_n*(_n*(_n*(_n*(_n*(_n*(_n*(_n*(_n* (real(4581213151910952960.L)*_n-real(14619590189383680000.L))+ real(37857543608944558080.L))-real(80356003408269803520.L))+ real(140318109556675706880.L))-real(200996480282127237120.L))+ real(233643442930974720000.L))-real(215589676658378932224.L))+ real(151722927633146576896.L))-real(75952236807107641344.L))+ real(23815531880194768896.L))-real(3473098399195070464.L))/ real(148850981344565529304275.L); _C4x[289] = (_n*(_n*(_n*(_n*(_n*(_n*(_n*(_n*(_n* (real(88673504147149946880.L)*_n-real(163403083004384378880.L))+ real(239244894822822051840.L))-real(271270832021396520960.L))+ real(222524211445282897920.L))-real(103327209200830906368.L))- real(24011419553781252096.L))+real(93416275866254573568.L))- real(89799243908620746752.L))+real(47523786589758029824.L))- real(11411609025926660096.L))/real(148850981344565529304275.L); _C4x[290] = (_n*(_n*(_n*(_n*(_n*(_n*(_n*(_n* (real(285723804270896087040.L)*_n-real(228591337462101442560.L))+ real(72073398978021949440.L))+real(99403506946261647360.L))- real(182826346802342526976.L))+real(152250846083639410688.L))- real(72486330902450798592.L))+real(16574222227323486208.L))+ real(313579421845946368.L))-real(683891962775863296.L))/ real(148850981344565529304275.L); _C4x[291] = (_n*(_n*(_n*(_n*(_n*(_n*((real(224623684749612810240.L)- real(111637412341182627840.L)*_n)*_n-real(180732219385152798720.L))+ real(60659584998462980096.L))+real(15756278678801088512.L))- real(18517453693201154048.L))-real(2070975036814000128.L))+ real(7530434710304980992.L))-real(2547317046870278144.L))/ real(148850981344565529304275.L); _C4x[292] = (_n*(_n*(_n*(_n*(_n*((-real(74345380106981081088.L)*_n- real(33446175416569036800.L))*_n+real(29766270857812901888.L))+ real(16596361781933244416.L))-real(29619050408382038016.L))+ real(14003333422240497664.L))-real(2090741671116406784.L))- real(144310940605612032.L))/real(148850981344565529304275.L); _C4x[293] = (_n*(_n*(_n*(_n*((real(46654792779977195520.L)- real(18352967315387056128.L)*_n)*_n-real(19119835431189872640.L))- real(3972190146391965696.L))+real(2647518983439253504.L))+ real(1889695856160931840.L))-real(1040545024531496960.L))/ real(148850981344565529304275.L); _C4x[294] = (_n*(_n*(_n*(_n*(real(8042800387494772736.L)*_n- real(5581953713670455296.L))-real(9353280430893170688.L))+ real(8401655689738452992.L))-real(2057171227478327296.L))+ real(26497493910945792.L))/real(148850981344565529304275.L); _C4x[295] = (_n*(_n*((real(2384423818371268608.L)- real(15719743509969764352.L)*_n)*_n+real(1656962409224470528.L))+ real(454053617968611328.L))-real(511545454735917056.L))/ real(148850981344565529304275.L); _C4x[296] = (_n*((real(1608466708345913344.L)-real(790392194996371456.L)* _n)*_n-real(551028320356007936.L))+real(27909353679880192.L))/ real(49616993781521843101425.L); _C4x[297] = (_n*(real(644036807813496832.L)*_n+real(40723815822524416.L))- real(275993534497030144.L))/real(148850981344565529304275.L); _C4x[298] = (real(986902953984.L)-real(12603581530112.L)*_n)/ real(1481236940069912025.L); _C4x[299] = -real(455065206784.L)/real(430714287538059525.L); _C4x[300] = (_n*(_n*(_n*(_n*(_n*(_n*(_n*(_n*(_n* ((real(1265500302606336000.L)-real(329030078677647360.L)*_n)*_n- real(4024290962288148480.L))+real(10731442566101729280.L))- real(24216347369558507520.L))+real(46455850055887749120.L))- real(75743233786773504000.L))+real(104222689690600341504.L))- real(118698063258739277824.L))+real(106418953266455904256.L))- real(63508085013852717056.L))+real(17365491995975352320.L))/ real(159116566264880393394225.L); _C4x[301] = (_n*(_n*(_n*(_n*(_n*(_n*(_n*(_n* ((real(14882283558650511360.L)-real(6276881500927426560.L)*_n)*_n- real(29370263865120522240.L))+real(48291491547457781760.L))- real(65837522928418160640.L))+real(73521432262361481216.L))- real(65711463267458613248.L))+real(45123233467577925632.L))- real(22181618050576416768.L))+real(6865738920416509952.L))- real(992313828341448704.L))/real(53038855421626797798075.L); _C4x[302] = (_n*(_n*(_n*(_n*(_n*(_n*(_n*((real(238276389608211087360.L)- real(174523148574067261440.L)*_n)*_n-real(253161974471998832640.L))+ real(193258055227869757440.L))-real(77313249564178776064.L))- real(35669549238313811968.L))+real(91513553596817866752.L))- real(83142423755775541248.L))+real(43174935134157668352.L))- real(10312018026953703424.L))/real(159116566264880393394225.L); _C4x[303] = (_n*(_n*(_n*(_n*(_n*(_n*((real(31841725142595010560.L)- real(188279571245653032960.L)*_n)*_n+real(117579283767723294720.L))- real(176104951189136736256.L))+real(135914163665861869568.L))- real(61220379106069184512.L))+real(12910069571720839168.L))+ real(669828187357708288.L))-real(627158843691892736.L))/ real(159116566264880393394225.L); _C4x[304] = (_n*(_n*(_n*(_n*(_n*(_n*(real(217810521794505867264.L)*_n- real(153744045020188508160.L))+real(41144727522385068032.L))+ real(19801355318391209984.L))-real(16197257838647574528.L))- real(3156220832737394688.L))+real(7221922156001624064.L))- real(2344197385262989312.L))/real(159116566264880393394225.L); _C4x[305] = (_n*(_n*(_n*(_n*((real(22938676783197716480.L)- real(40412169997639483392.L)*_n)*_n+real(20050083815169720320.L))- real(27838536003172171776.L))+real(12132117403752464384.L))- real(1629635661550059520.L))-real(154210640238477312.L))/ real(159116566264880393394225.L); _C4x[306] = (_n*(_n*(_n*(_n*(real(43830217809177083904.L)*_n- real(14345956578488745984.L))-real(4890152593885495296.L))+ real(2154933114156089344.L))+real(1949495001503236096.L))- real(977860968983822336.L))/real(159116566264880393394225.L); _C4x[307] = (_n*(_n*((-real(3719479336609251328.L)*_n- real(9760288647306805248.L))*_n+real(7673076722048172032.L))- real(1733840707841425408.L))+real(3433449469771776.L))/ real(159116566264880393394225.L); _C4x[308] = (_n*(_n*(real(1246618329292996608.L)*_n+ real(1596423229205905408.L))+real(533862837164965888.L))- real(490989441616183296.L))/real(159116566264880393394225.L); _C4x[309] = (_n*(real(241150525200924672.L)*_n-real(76097818233667584.L))+ real(3185457252794368.L))/real(8374556119204231231275.L); _C4x[310] = (real(116805930582016.L)*_n-real(331208416296960.L))/ real(194757119051261191425.L); _C4x[311] = real(76235669504.L)/real(153472907053791325.L); _C4x[312] = (_n*(_n*(_n*(_n*(_n*(_n*(_n*(_n*(_n* (real(1721080411544616960.L)*_n-real(5011381198321090560.L))+ real(12425880866012528640.L))-real(26404996840276623360.L))+ real(48217820317026877440.L))-real(75541251830008774656.L))+ real(100721669106678366208.L))-real(112009442368633700352.L))+ real(98761013701375950848.L))-real(58358780823540334592.L))+ real(15877021253463179264.L))/real(169382151185195257484175.L); _C4x[313] = (_n*(_n*(_n*(_n*(_n*(_n*(_n*(_n*(real(51120883802969210880.L)* _n-real(94718035280548331520.L))+real(147759931167583764480.L))- real(192871281268107509760.L))+real(207872380922293649408.L))- real(180604372191285346304.L))+real(121336560225286619136.L))- real(58687254261571518464.L))+real(17956547945704718336.L))- real(2574652095156191232.L))/real(169382151185195257484175.L); _C4x[314] = (_n*(_n*(_n*(_n*(_n*(_n*(_n*(real(233990948034277539840.L)*_n- real(234191667386621362176.L))+real(166614854742533210112.L))- real(55591689499608875008.L))-real(44261944760675074048.L))+ real(88916995783325122560.L))-real(77122507682856566784.L))+ real(39416812563742064640.L))-real(9374374295184080896.L))/ real(169382151185195257484175.L); _C4x[315] = (_n*(_n*(_n*(_n*(_n*((real(129491872198837665792.L)- real(1518245134972485632.L)*_n)*_n-real(167545388578629484544.L))+ real(121158334303866716160.L))-real(51849068982287990784.L))+ real(10042629764302241792.L))+real(906484836737220608.L))- real(574828516554571776.L))/real(169382151185195257484175.L); _C4x[316] = (_n*(_n*(_n*(_n*((real(25652339856428236800.L)- real(128817646927041527808.L)*_n)*_n+real(22035468388032053248.L))- real(13924654715208990720.L))-real(3996941508195385344.L))+ real(6905581115818377216.L))-real(2164359862996172800.L))/ real(169382151185195257484175.L); _C4x[317] = (_n*(_n*(_n*(_n*(real(16232352634898481152.L)*_n+ real(22471975741209706496.L))-real(25967942334035263488.L))+ real(10518518050574041088.L))-real(1263617758310957056.L))- real(158507531142955008.L))/real(169382151185195257484175.L); _C4x[318] = (_n*(_n*((-real(10270004577038237696.L)*_n- real(5425519030381314048.L))*_n+real(1690772493784055808.L))+ real(1981134204506734592.L))-real(919514337289175040.L))/ real(169382151185195257484175.L); _C4x[319] = (_n*((real(367876730725072896.L)-real(523988449653424128.L)* _n)*_n-real(76996497190682624.L))-real(713971740966912.L))/ real(8914850062378697762325.L); _C4x[320] = (_n*(real(78774441852534784.L)*_n+real(31478708665581568.L))- real(24754434852519936.L))/real(8914850062378697762325.L); _C4x[321] = (real(10340133765120.L)-real(309821760864256.L)*_n)/ real(41464418894784640755.L); _C4x[322] = -real(98573794410496.L)/real(63225886967224806825.L); _C4x[323] = (_n*(_n*(_n*(_n*(_n*(_n*(_n*((real(14067034942655692800.L)- real(6042430918549831680.L)*_n)*_n-real(28363423715898163200.L))+ real(49595472326084788224.L))-real(75005498270930698240.L))+ real(97248508102999801856.L))-real(105875391886330429440.L))+ real(91972562648731484160.L))-real(53869643837114155008.L))+ real(14589695205885083648.L))/real(179647736105510121574125.L); _C4x[324] = (_n*(_n*(_n*(_n*(_n*(_n*((real(149245124639427919872.L)- real(100215113757480714240.L)*_n)*_n-real(187432707323852750848.L))+ real(195721595769606635520.L))-real(165796358358168502272.L))+ real(109226330215392739328.L))-real(52066859386524401664.L))+ real(15766725025496825856.L))-real(2244568493213089792.L))/ real(179647736105510121574125.L); _C4x[325] = (_n*(_n*(_n*(_n*(_n*((real(142606201206746382336.L)- real(215080052857843482624.L)*_n)*_n-real(37499493979751710720.L))- real(50496787156068990976.L))+real(85911488204862652416.L))- real(71683598662433243136.L))+real(36147356017757257728.L))- real(8567682175313379328.L))/real(179647736105510121574125.L); _C4x[326] = (_n*(_n*(_n*(_n*(_n*(real(136581376733532389376.L)*_n- real(158005196148881489920.L))+real(107944816840187838464.L))- real(44029139666167922688.L))+real(7784110766340177920.L))+ real(1059263180007538688.L))-real(527085284282597376.L))/ real(179647736105510121574125.L); _C4x[327] = (_n*(_n*(_n*(_n*(real(13495181522029772800.L)*_n+ real(22995041460089257984.L))-real(11782208651530338304.L))- real(4638827256800608256.L))+real(6590706033872601088.L))- real(2004579178992631808.L))/real(179647736105510121574125.L); _C4x[328] = (_n*(_n*(_n*(real(1265879281930600448.L)*_n- real(1267904444910010368.L))+real(480426383076491264.L))- real(51142821293326336.L))-real(8370302849384448.L))/ real(9455144005553164293375.L); _C4x[329] = (_n*((real(9505621619507200.L)-real(42699430985465856.L)*_n)* _n+real(14970984683536384.L))-real(6507010744909824.L))/ real(1350734857936166327625.L); _C4x[330] = (_n*(real(47788073878028288.L)*_n-real(9288124475637760.L))- real(195764609351680.L))/real(1350734857936166327625.L); _C4x[331] = (real(139397458558976.L)*_n-real(96668976414720.L))/ real(38592424512461895075.L); _C4x[332] = real(4294967296.L)/real(27767187952228725.L); _C4x[333] = (_n*(_n*(_n*(_n*(_n*(_n*(_n*(real(15634981129939845120.L)*_n- real(30097338675134201856.L))+real(50639966659749609472.L))- real(74213744242736496640.L))+real(93844476590815182848.L))- real(100242963631098036224.L))+real(85922540255226888192.L))- real(49927962580739948544.L))+real(13467410959278538752.L))/ real(189913321025824985664075.L); _C4x[334] = (_n*(_n*(_n*(_n*(_n*(_n*(real(49858217603252617216.L)*_n- real(60491202854456918016.L))+real(61398847229284843520.L))- real(50839679340478726144.L))+real(32906504778597531648.L))- real(15481538784725565440.L))+real(4644461635417669632.L))- real(656946876062367744.L))/real(63304440341941661888025.L); _C4x[335] = (_n*(_n*(_n*(_n*(_n*(real(121130233672878784512.L)*_n- real(22460671662164541440.L))-real(54915866362539671552.L))+ real(82689769086501519360.L))-real(66768253439656853504.L))+ real(33285308387159965696.L))-real(7868084678421381120.L))/ real(189913321025824985664075.L); _C4x[336] = (_n*(_n*(_n*((real(5061923935373754368.L)- real(7792939020077498368.L)*_n)*_n-real(1972709952573145088.L))+ real(315525202555437056.L))+real(60677923568353280.L))- real(25463057211719680.L))/real(9995437948727630824425.L); _C4x[337] = (_n*(_n*(_n*(real(1214256936128610304.L)*_n- real(516349145942851584.L))-real(269481366435921920.L))+ real(330694683447525376.L))-real(98005681906384896.L))/ real(9995437948727630824425.L); _C4x[338] = (_n*((real(417355922206097408.L)-real(1171522492569747456.L)* _n)*_n-real(38839698495373312.L))-real(8265819179974656.L))/ real(9995437948727630824425.L); _C4x[339] = (_n*(real(46264700517744640.L)*_n+real(104456628295696384.L))- real(42917065568288768.L))/real(9995437948727630824425.L); _C4x[340] = (-real(10984670917296128.L)*_n-real(369538986147840.L))/ real(1999087589745526164885.L); _C4x[341] = -real(481783661461504.L)/real(212668892526119804775.L); _C4x[342] = (_n*(_n*(_n*(_n*(_n*((real(2705144950491709440.L)- real(1664074014999445504.L)*_n)*_n-real(3854104364947865600.L))+ real(4765074487571906560.L))-real(5003328211950501888.L))+ real(4237052720030154752.L))-real(2444453492325089280.L))+ real(656946876062367744.L))/real(10535731891902097355475.L); _C4x[343] = (_n*(_n*(_n*(_n*((real(9122922853564416000.L)- real(9221291760855023616.L)*_n)*_n-real(7399880380699901952.L))+ real(4713560168787345408.L))-real(2191339868297101312.L))+ real(651854264620023808.L))-real(91667005962190848.L))/ real(10535731891902097355475.L); _C4x[344] = (_n*(_n*(_n*((-real(525427469856014336.L)*_n- real(3049207427590258688.L))*_n+real(4177991903188353024.L))- real(3280075182609268736.L))+real(1619233731795484672.L))- real(381945858175795200.L))/real(10535731891902097355475.L); _C4x[345] = (_n*(_n*(_n*(real(4512114245415993344.L)*_n- real(1683149991985545216.L))+real(240555551971344384.L))+ real(63402238504075264.L))-real(23404341947793408.L))/ real(10535731891902097355475.L); _C4x[346] = (_n*((-real(422387287414800384.L)*_n- real(288021468942434304.L))*_n+real(315088146683396096.L))- real(91295508470956032.L))/real(10535731891902097355475.L); _C4x[347] = (_n*(real(362953186375368704.L)*_n-real(28952340182597632.L))- real(8074607235956736.L))/real(10535731891902097355475.L); _C4x[348] = (real(103462944662093824.L)*_n-real(40486251517706240.L))/ real(10535731891902097355475.L); _C4x[349] = -real(15530601742336.L)/real(74721502779447498975.L); _C4x[350] = (_n*(_n*(_n*(_n*(_n*(real(2732117070232682496.L)*_n- real(3794607041989836800.L))+real(4596895388010545152.L))- real(4752195907875766272.L))+real(3980471786083975168.L))- real(2281489926170083328.L))+real(611113373081272320.L))/ real(11076025835076563886525.L); _C4x[351] = (_n*(_n*(_n*(_n*(real(8586653649302716416.L)*_n- real(6835567032860147712.L))+real(4291072825814417408.L))- real(1973394673439342592.L))+real(582508066256191488.L))- real(81481783077502976.L))/real(11076025835076563886525.L); _C4x[352] = (_n*(_n*((real(4003933165197459456.L)- real(3151270693950193664.L)*_n)*_n-real(3068015673494994944.L))+ real(1501840524565282816.L))-real(353665611655544832.L))/ real(11076025835076563886525.L); _C4x[353] = (_n*((real(180610178024996864.L)-real(1438992439921606656.L)* _n)*_n+real(64567720829517824.L))-real(21546854491619328.L))/ real(11076025835076563886525.L); _C4x[354] = ((real(300168873406103552.L)-real(301121050475757568.L)*_n)* _n-real(85269600635191296.L))/real(11076025835076563886525.L); _C4x[355] = (-real(20983079904477184.L)*_n-real(7828247911858176.L))/ real(11076025835076563886525.L); _C4x[356] = -real(38242113925677056.L)/real(11076025835076563886525.L); _C4x[357] = (_n*(_n*(_n*((real(4435148431471673344.L)- real(3729556635555725312.L)*_n)*_n-real(4520439747461513216.L))+ real(3748657351553449984.L))-real(2135862909606035456.L))+ real(570372481542520832.L))/real(11616319778251030417575.L); _C4x[358] = (_n*(_n*((real(1306413327844376576.L)- real(2109021631748767744.L)*_n)*_n-real(594862178905882624.L))+ real(174356155886206976.L))-real(24271169427341312.L))/ real(3872106592750343472525.L); _C4x[359] = (_n*(_n*(real(3832937116845735936.L)*_n- real(2875521973796995072.L))+real(1397413308205629440.L))- real(328651447245733888.L))/real(11616319778251030417575.L); _C4x[360] = (_n*(real(132504345286541312.L)*_n+real(64633691527184384.L))- real(19871473648795648.L))/real(11616319778251030417575.L); _C4x[361] = (real(285991770477559808.L)*_n-real(79839662461419520.L))/ real(11616319778251030417575.L); _C4x[362] = -real(109401406963712.L)/real(168352460554362759675.L); _C4x[363] = (_n*(_n*(_n*(real(4280073311490146304.L)*_n- real(4306171319487037440.L))+real(3538404340043612160.L))- real(2005095792691380224.L))+real(533965727401508864.L))/ real(12156613721425496948625.L); _C4x[364] = (_n*(_n*(real(3590600356037394432.L)*_n- real(1620099597202358272.L))+real(471787245339148288.L))- real(65383558457327616.L))/real(12156613721425496948625.L); _C4x[365] = ((real(1304091159286513664.L)-real(2700435742189944832.L)*_n)* _n-real(306405303358849024.L))/real(12156613721425496948625.L); _C4x[366] = (real(2779565395017728.L)*_n-real(798245441765376.L))/ real(528548422670673780375.L); _C4x[367] = -real(3257852953100288.L)/real(528548422670673780375.L); _C4x[368] = (_n*((real(145522562959409152.L)-real(178595872722911232.L)* _n)*_n-real(82049955711156224.L))+real(21794519485775872.L))/ real(552039463678259281725.L); _C4x[369] = ((real(18577348462903296.L)-real(64176294690029568.L)*_n)*_n- real(2564061115973632.L))/real(552039463678259281725.L); _C4x[370] = (real(53058033109958656.L)*_n-real(12457466742702080.L))/ real(552039463678259281725.L); _C4x[371] = -real(35184372088832.L)/real(26287593508488537225.L); _C4x[372] = (_n*(real(137922738588221440.L)*_n-real(77405618595430400.L))+ real(20512488927789056.L))/real(575530504685844783075.L); _C4x[373] = (real(5629499534213120.L)*_n-real(774056185954304.L))/ real(191843501561948261025.L); _C4x[374] = -real(11681211533492224.L)/real(575530504685844783075.L); _C4x[375] = (real(3870280929771520.L)-real(14636698788954112.L)*_n)/ real(119804309138686056885.L); _C4x[376] = -real(140737488355328.L)/real(39934769712895352295.L); _C4x[377] = real(281474976710656.L)/real(9577116718477165935.L); break; case 30: _C4x[0] = (_n*(_n*(_n*(_n*(_n*(_n*(_n*(_n*(_n*(_n*(_n*(_n*(_n*(_n*(_n*(_n* (_n*(_n*(_n*(_n*(_n*(_n*(_n*(_n*(_n*(_n*(_n*(_n* (real(189921507297691265460.L)*_n+real(211051356190277606640.L))+ real(235437542304700439340.L))+real(263732757139505707560.L))+ real(296753306928658222500.L))+real(335529072367336230240.L))+ real(381371707254733912860.L))+real(435968929396185745560.L))+ real(501516705494213672340.L))+real(580907380881328578000.L))+ real(678001900257207783180.L))+real(798030944800349830920.L))+ real(948198058069232863620.L))+real(1138606998736279625280.L))+ real(1383723783186450933500.L))+real(1704747700885707550072.L))+ real(2133581749866273735028.L))+real(2719730582247118167728.L))+ real(3542806942664009192172.L))+real(4736372918000012289000.L))+ real(6536194626840016958820.L))+real(9385305105206178197280.L))+ real(14184608852186610229980.L))+real(22965557189254511800920.L))+ real(41009923552240199644500.L))+real(85300640988659615260560.L))+ real(234576762718813941966540.L))+real(1407460576312883651799240.L))- real(4926112017095092781297340.L))+real(12315280042737731953243350.L))/ real(18472920064106597929865025.L); _C4x[1] = (_n*(_n*(_n*(_n*(_n*(_n*(_n*(_n*(_n*(_n*(_n*(_n*(_n*(_n*(_n*(_n* (_n*(_n*(_n*(_n*(_n*(_n*(_n*(_n*(_n*(_n*(_n*(real(814084305459122880.L)* _n+real(977257180095608880.L))+real(1181333738586811680.L))+ real(1438803912381373200.L))+real(1766717362179918720.L))+ real(2188646813513537520.L))+real(2737638489144023520.L))+ real(3460724822271744720.L))+real(4425960997191074880.L))+ real(5733631291815710640.L))+real(7534517181435246240.L))+ real(10060456849540932240.L))+real(13676960945781136640.L))+ real(18976783312271327088.L))+real(26952532820327392096.L))+ real(39328695850069561936.L))+real(59231882009011647936.L))+ real(92622403729778018096.L))+real(151563933376000393248.L))+ real(262322192381539142160.L))+real(487548317153567698560.L))+ real(995411147521867384560.L))+real(2315854506479446568160.L))+ real(6561587768358431943120.L))+real(26246351073433727772480.L))+ real(255901922965978845781680.L))-real(1876614101750511535732320.L))+ real(2814921152625767303598480.L))-real(1231528004273773195324335.L))/ real(6157640021368865976621675.L); _C4x[2] = (_n*(_n*(_n*(_n*(_n*(_n*(_n*(_n*(_n*(_n*(_n*(_n*(_n*(_n*(_n*(_n* (_n*(_n*(_n*(_n*(_n*(_n*(_n*(_n*(_n*(_n*(real(5965802290210445280.L)*_n+ real(7221486469779266880.L))+real(8808931664298199200.L))+ real(10835344176917195520.L))+real(13449536441823393120.L))+ real(16861067578607229120.L))+real(21369723538109490720.L))+ real(27411851282409713280.L))+real(35634826738381513440.L))+ real(47019737534826853440.L))+real(63089152167581889440.L))+ real(86270061350311784960.L))+real(120550517727542648928.L))+ real(172716230726179614656.L))+real(254789732923417162016.L))+ real(389109630958630598016.L))+real(619611942192308121056.L))+ real(1038925423654293293888.L))+real(1860102818705459371680.L))+ real(3631881666912084015360.L))+real(8003918206604403051360.L))+ real(21208351796180194887360.L))+real(77967101718141367794720.L))+ real(682405127909276922084480.L))-real(4370017453726715674117920.L))+ real(5800443587228853837718080.L))-real(1876614101750511535732320.L))- real(351865144078220912949810.L))/real(18472920064106597929865025.L); _C4x[3] = (_n*(_n*(_n*(_n*(_n*(_n*(_n*(_n*(_n*(_n*(_n*(_n*(_n*(_n*(_n*(_n* (_n*(_n*(_n*(_n*(_n*(_n*(_n*(_n*(_n*(real(11175914208053605920.L)*_n+ real(13667937175788838800.L))+real(16861339550162167680.L))+ real(20999038399924890480.L))+real(26425680245286701280.L))+ real(33638522960654060880.L))+real(43368452791032505920.L))+ real(56712149125481517360.L))+real(75353600937497414560.L))+ real(101946850410735354640.L))+real(140800514090906010880.L))+ real(199151303276610186992.L))+real(289644075159731035744.L))+ real(435427218872554561744.L))+real(681311393548426257344.L))+ real(1120178695163687380144.L))+real(1961835789231289606432.L))+ real(3736398365335705110160.L))+real(8005684686014379745920.L))+ real(20546805257143922774640.L))+real(72847844388028906959840.L))+ real(611609049355935945856080.L))-real(3716174531397351926374080.L))+ real(4402825392568507833833520.L))-real(91862228757018047203680.L))- real(1961914742739171150992880.L))+real(645086097476738340407985.L))/ real(18472920064106597929865025.L); _C4x[4] = (_n*(_n*(_n*(_n*(_n*(_n*(_n*(_n*(_n*(_n*(_n*(_n*(_n*(_n*(_n*(_n* (_n*(_n*(_n*(_n*(_n*(_n*(_n*(_n*(real(19114287421443758400.L)*_n+ real(23678423776028874240.L))+real(29628855166877803200.L))+ real(37488161212699324800.L))+real(48019353608228811840.L))+ real(62359359382151650560.L))+real(82241257908344364480.L))+ real(110375631851636844672.L))+real(151127771985130778432.L))+ real(211768425067030307840.L))+real(304891347591212120256.L))+ real(453342475320154808192.L))+real(700930993104637725248.L))+ real(1137579729063825992448.L))+real(1964375144319342867392.L))+ real(3684174697282499778176.L))+real(7762885136767238210880.L))+ real(19564112761373887590912.L))+real(67990379306474992258752.L))+ real(557946054599958930165120.L))-real(3289407237782262334234560.L))+ real(3653037024325964909410560.L))+real(301061085842328053860800.L))- real(1837244575140360944073600.L))+real(446187968248373372132160.L))+ real(63975480741494711445420.L))/real(18472920064106597929865025.L); _C4x[5] = (_n*(_n*(_n*(_n*(_n*(_n*(_n*(_n*(_n*(_n*(_n*(_n*(_n*(_n*(_n*(_n* (_n*(_n*(_n*(_n*(_n*(_n*(_n*(real(31662052475060350080.L)*_n+ real(39866290420131056400.L))+real(50802965833298388000.L))+ real(65614329944749727280.L))+real(86032610217249931200.L))+ real(114752661353450749776.L))+real(156090693610066908000.L))+ real(217195264099038478960.L))+real(310377044694784996096.L))+ real(457836627463413087120.L))+real(701889316028543513248.L))+ real(1128859090969929711280.L))+real(1930581167686946940480.L))+ real(3583732887624629149648.L))+real(7468860304548325335520.L))+ real(18603030262550506124016.L))+real(63824972127283464370560.L))+ real(516046046235016723549200.L))-real(2982194210746749443899104.L))+ real(3177750723996750436138800.L))+real(435299389165277026864320.L))- real(1680518105688703660974000.L))+real(505628233914679167381600.L))- real(190286045282394526350480.L))+real(119338877537018980965495.L))/ real(18472920064106597929865025.L); _C4x[6] = (_n*(_n*(_n*(_n*(_n*(_n*(_n*(_n*(_n*(_n*(_n*(_n*(_n*(_n*(_n*(_n* (_n*(_n*(_n*(_n*(_n*(_n*(real(52418567655926775840.L)*_n+ real(67404971592604453440.L))+real(87973765278231581280.L))+ real(116773213512539294592.L))+real(158028390236333901984.L))+ real(218709204614695230656.L))+real(310770431127524424416.L))+ real(455683015439866156544.L))+real(694202642447122776352.L))+ real(1109123937794466762560.L))+real(1883656912173972550496.L))+ real(3471067204725631213696.L))+real(7178184098706951481760.L))+ real(17731573440262069019072.L))+real(60284824122569309141984.L))+ real(482276777901673891965696.L))-real(2747412285149910406954464.L))+ real(2844951125947430113449024.L))+real(487234237114473842267232.L))- real(1548827948914646069873280.L))+real(504896911438948815833760.L))- real(238817417352389244344640.L))+real(101125646782935833476320.L))+ real(20504961776120099822250.L))/real(18472920064106597929865025.L); _C4x[7] = (_n*(_n*(_n*(_n*(_n*(_n*(_n*(_n*(_n*(_n*(_n*(_n*(_n*(_n*(_n*(_n* (_n*(_n*(_n*(_n*(_n*(real(88777991863066500960.L)*_n+ real(117383085554502957840.L))+real(158209294686425258304.L))+ real(218031909719357931888.L))+real(308437784986056031008.L))+ real(450175344764306177488.L))+real(682510556929791762688.L))+ real(1084968513380510370864.L))+real(1832976201260005254880.L))+ real(3359149233389601704080.L))+real(6906584436101418559680.L))+ real(16955186412374716157680.L))+real(57251960794377059910304.L))+ real(454342620201979231468368.L))-real(2560462885055838819676032.L))+ real(2596312660963884656634288.L))+real(506172260842485507190368.L))- real(1441060516198138862520816.L))+real(489671625404359685421120.L))- real(251773660584863310594960.L))+real(135822835353698068023840.L))- real(60720079998833910458160.L))+real(41902492476612486342645.L))/ real(18472920064106597929865025.L); _C4x[8] = (_n*(_n*(_n*(_n*(_n*(_n*(_n*(_n*(_n*(_n*(_n*(_n*(_n*(_n*(_n*(_n* (_n*(_n*(_n*(_n*(real(157352525335910459520.L)*_n+ real(216112107357009394176.L))+real(304641374195939670912.L))+ real(443005003269640933632.L))+real(669087805248518823552.L))+ real(1059437867006021978112.L))+real(1782508232470888722816.L))+ real(3252675513312165543680.L))+real(6657481389963067610240.L))+ real(16264475294831374947840.L))+real(54624571375482100164480.L))+ real(430747830766027492306176.L))-real(2407053756464621452637568.L))+ real(2401934967172158512489472.L))+real(510116655313811361389952.L))- real(1351897788853967484019968.L))+real(471105017170130292768896.L))- real(252611266238427259932160.L))+real(148999005272714232746880.L))- real(85681317301509592938240.L))+real(39491413689438983583360.L))+ real(8826655991801048542680.L))/real(18472920064106597929865025.L); _C4x[9] = (_n*(_n*(_n*(_n*(_n*(_n*(_n*(_n*(_n*(_n*(_n*(_n*(_n*(_n*(_n*(_n* (_n*(_n*(_n*(real(300081463107326685888.L)*_n+ real(435075662163761717136.L))+real(655092328287902057184.L))+ real(1033979227133161426224.L))+real(1733931840540521746176.L))+ real(3153124592961525074128.L))+real(6430214076339224853280.L))+ real(15647617897201765676656.L))+real(52323358308772898433856.L))+ real(410478657984558252030480.L))-real(2278233799007768880069792.L))+ real(2244816466385811147093936.L))+real(506765315069892266043264.L))- real(1276922381534538778700976.L))+real(452553764141681994529696.L))- real(248763146335899789627152.L))+real(153472421487050386678720.L))- real(96955754370391847521136.L))+real(57879404459650387936224.L))- real(27194067276886224403920.L))+real(19427022918663383738715.L))/ real(18472920064106597929865025.L); _C4x[10] = (_n*(_n*(_n*(_n*(_n*(_n*(_n*(_n*(_n*(_n*(_n*(_n*(_n*(_n*(_n* (_n*(_n*(_n*(real(641124631098159779424.L)*_n+ real(1009278149678541276480.L))+real(1687900338358129074720.L))+ real(3060674856465476565504.L))+real(6222854187406724628960.L))+ real(15093678564518798798528.L))+real(50287676051987597743520.L))+ real(392822801419344695118720.L))-real(2168073055102155034983072.L))+ real(2114525943001808159799360.L))+real(499768298419350406035744.L))- real(1212890066195340610855680.L))+real(435078310414246447814880.L))- real(243068282836260352220736.L))+real(153984410360074655288480.L))- real(102025021643160744300928.L))+real(67161242601898413948000.L))- real(41077712199598055298240.L))+real(19551747405504050728992.L))+ real(4556964852924254247750.L))/real(18472920064106597929865025.L); _C4x[11] = (_n*(_n*(_n*(_n*(_n*(_n*(_n*(_n*(_n*(_n*(_n*(_n*(_n*(_n*(_n* (_n*(_n*(real(1644593340680774363808.L)*_n+ real(2974985345798576277648.L))+real(6033217672533824666880.L))+ real(14593332547391192455536.L))+real(48470944278867841871712.L))+ real(377263975683542674014288.L))-real(2072466844264004196520512.L))+ real(2004280098922226778564912.L))+real(490983001152674306581536.L))- real(1157448735444418176679920.L))+real(418961345006282569203328.L))- real(236735403379970029309712.L))+real(152578379808885400201440.L))- real(103980365080202374289456.L))+real(71949257599003878952768.L))- real(48668654832790395121488.L))+real(30271556639684001914272.L))- real(14541717385575148841072.L))+real(10562542186496209223769.L))/ real(18472920064106597929865025.L); _C4x[12] = (_n*(_n*(_n*(_n*(_n*(_n*(_n*(_n*(_n*(_n*(_n*(_n*(_n*(_n*(_n* (_n*(real(5859225767839481941440.L)*_n+real(14138836591954902297600.L))+ real(46836981518114363714112.L))+real(363417916476778490830464.L))- real(1988471862920876700983616.L))+real(1909460638889273111625984.L))+ real(481401111456226504006464.L))-real(1108873247879487179177088.L))+ real(404205608091269807345600.L))-real(230310960802358250088960.L))+ real(150227316868554610502720.L))-real(104271177452718125897600.L))+ real(74319013457213827752128.L))-real(52940603775677982348544.L))+ real(36502659689693769522496.L))-real(22982944304842651153024.L))+ real(11115849857024519262656.L))+real(2648408976069309124868.L))/ real(18472920064106597929865025.L); _C4x[13] = (_n*(_n*(_n*(_n*(_n*(_n*(_n*(_n*(_n*(_n*(_n*(_n*(_n*(_n*(_n* (real(45357313447133764627200.L)*_n+real(350992057688664545142288.L))- real(1913915380779142223674464.L))+real(1826804308476682757856816.L))+ real(471568337397950033457216.L))-real(1065875812796881025260464.L))+ real(390715339577761010443488.L))-real(224046698446479685030800.L))+ real(147426865494714014258560.L))-real(103639146131018019198320.L))+ real(75309285871462651360800.L))-real(55326930578775326600528.L))+ real(40234763951743351716544.L))-real(28135381515304633083696.L))+ real(17877808985319180867424.L))-real(8691641782865373187856.L))+ real(6372339575414211051807.L))/real(18472920064106597929865025.L); _C4x[14] = (_n*(_n*(_n*(_n*(_n*(_n*(_n*(_n*(_n*(_n*(_n*(_n*(_n* ((real(1753933532511317034765888.L)-real(1847153977649346830327136.L)* _n)*_n+real(461789084706692153759712.L))- real(1027477306531764197935488.L))+real(378366479907630886502688.L))- real(218054850072167125283136.L))+real(144441107605135284033120.L))- real(102488535780945183240448.L))+real(75481304605813369868192.L))- real(56584143579971679080640.L))+real(42483089984340017145056.L))- real(31372510739198785034368.L))+real(22174438785393712385568.L))- real(14190233504057266556992.L))+real(6926800934824139768672.L))+ real(1671964091253290097186.L))/real(18472920064106597929865025.L); _C4x[15] = (_n*(_n*(_n*(_n*(_n*(_n*(_n*(_n*(_n*(_n*(_n*(_n*(_n* (real(452232258222178731259872.L)*_n-real(992920225077050004699120.L))+ real(367034239977241909375680.L))-real(212378970982395934608528.L))+ real(141414529033734011291040.L))-real(101050148880869812595504.L))+ real(75156163830808410647680.L))-real(57139308626006973667280.L))+ real(43807877206156354446176.L))-real(33429658024434313696880.L))+ real(24979378458362427631168.L))-real(17803992487860150922000.L))+ real(11457353713161731633440.L))-real(5610802265994889042352.L))+ real(4137334111727488291165.L))/real(18472920064106597929865025.L); _C4x[16] = (_n*(_n*(_n*(_n*(_n*(_n*(_n*(_n*(_n*(_n*(_n*(_n* (real(356603400938676393126144.L)*_n-real(207028189392477859501056.L))+ real(138426858316142976126720.L))-real(99460280478065510819328.L))+ real(74525806878683852346624.L))-real(57246300780477923866624.L))+ real(44537266454003446889216.L))-real(34728397099533369985536.L))+ real(26835866849517672595712.L))-real(20239122580453996764160.L))+ real(14521934281100724446976.L))-real(9387445163616609693184.L))+ real(4609135838728243047680.L))+real(1121862778166628454320.L))/ real(18472920064106597929865025.L); _C4x[17] = (_n*(_n*(_n*(_n*(_n*(_n*(_n*(_n*(_n*(_n*(_n* (real(135521498207840115389760.L)*_n-real(97801324580930546164080.L))+ real(73708932658832728524384.L))-real(57062294419595186876112.L))+ real(44872638803452391883648.L))-real(35523601668082297450032.L))+ real(28065863564156663165088.L))-real(21904058542540639116176.L))+ real(16643111787427543929280.L))-real(12006564633203377451760.L))+ real(7790065294829085108960.L))-real(3833034059675095183440.L))+ real(2837212009395740895555.L))/real(18472920064106597929865025.L); _C4x[18] = (_n*(_n*(_n*(_n*(_n*(_n*(_n*(_n*(_n*(_n* (real(72780887999907980778720.L)*_n-real(56687797467093094390464.L))+ real(44942288203091579409312.L))-real(35976018484962791685888.L))+ real(28869487952817744324192.L))-real(23048040245128473133888.L))+ real(18132809768032450731296.L))-real(13861708603609051373440.L))+ real(10044727732782400847840.L))-real(6537113063366962023360.L))+ real(3222261847927140308640.L))+real(788765879651738958270.L))/ real(18472920064106597929865025.L); _C4x[19] = (_n*(_n*(_n*(_n*(_n*(_n*(_n*(_n*(_n* (real(44830467165217313564448.L)*_n-real(36190573016423876920944.L))+ real(29376003983353192454784.L))-real(23829834809301037658256.L))+ real(19186376534360080014816.L))-real(15194457458019024700592.L))+ real(11674167008212187725120.L))-real(8491094065455827973840.L))+ real(5540167474678961177760.L))-real(2734942126196093975280.L))+ real(2029779927155061805185.L))/real(18472920064106597929865025.L); _C4x[20] = (_n*(_n*(_n*(_n*(_n*(_n*(_n*(_n* (real(9890530249207254091968.L)*_n-real(8118063630608987537920.L))+ real(6643669716759343956800.L))-real(5386553664458604177792.L))+ real(4289287139671079089600.L))-real(3309498018794454114560.L))+ real(2414702008011454632000.L))-real(1578935189784522012800.L))+ real(780444455838026203840.L))+real(191815908348659248500.L))/ real(6157640021368865976621675.L); _C4x[21] = (_n*(_n*(_n*(_n*(_n*(_n*(_n*(real(6817412133444875030656.L)*_n- real(5620052783236574483024.L))+real(4583277918914439827040.L))- real(3666544959812840807920.L))+real(2839166746024591046720.L))- real(2077083941506777485200.L))+real(1360691529974839700000.L))- real(673303240421980556080.L))+real(500663785927046642285.L))/ real(6157640021368865976621675.L); _C4x[22] = (_n*(_n*(_n*(_n*(_n*(_n*(real(960262614181115850976.L)*_n- real(786986354599569927744.L))+real(632056913425981822112.L))- real(490933242387825553792.L))+real(359984540096369636448.L))- real(236201765928323876032.L))+real(116988418102754605088.L))+ real(28838938497325330374.L))/real(1231528004273773195324335.L); _C4x[23] = (_n*(_n*(_n*(_n*(_n*(real(23484957834366375456.L)*_n- real(18925443258702887248.L))+real(14738796727059217088.L))- real(10828987655927003952.L))+real(7115236278117316448.L))- real(3526991761547102992.L))+real(2626420759498248999.L))/ real(42466482905992179149115.L); _C4x[24] = (_n*(_n*(_n*(_n*(real(2668340077443716480.L)*_n- real(2082843371271969280.L))+real(1532978845352494720.L))- real(1008471996361473280.L))+real(500253303269582720.L))+ real(123596899995061064.L))/real(6849432726772932120825.L); _C4x[25] = (_n*(_n*(_n*(real(2156823602081600.L)*_n- real(1589847612210000.L))+real(1046997801668000.L))- real(519691524492400.L))+real(387422508833217.L))/ real(8048687105491107075.L); _C4x[26] = (_n*(_n*(real(7937931437280.L)*_n-real(5232466998720.L))+ real(2598654782880.L))+real(643173496654.L))/real(45302178830156325.L); _C4x[27] = (_n*(real(21708121824.L)*_n-real(10786479696.L))+ real(8048130587.L))/real(210707808512355.L); _C4x[28] = (real(121722048.L)*_n+real(30168404.L))/real(2653289816265.L); _C4x[29] = real(3361.L)/real(109067695.L); _C4x[30] = (_n*(_n*(_n*(_n*(_n*(_n*(_n*(_n*(_n*(_n*(_n*(_n*(_n*(_n*(_n* (_n*(_n*(_n*(_n*(_n*(_n*(_n*(_n*(_n*(_n*(_n*((- real(814084305459122880.L)*_n-real(977257180095608880.L))*_n- real(1181333738586811680.L))-real(1438803912381373200.L))- real(1766717362179918720.L))-real(2188646813513537520.L))- real(2737638489144023520.L))-real(3460724822271744720.L))- real(4425960997191074880.L))-real(5733631291815710640.L))- real(7534517181435246240.L))-real(10060456849540932240.L))- real(13676960945781136640.L))-real(18976783312271327088.L))- real(26952532820327392096.L))-real(39328695850069561936.L))- real(59231882009011647936.L))-real(92622403729778018096.L))- real(151563933376000393248.L))-real(262322192381539142160.L))- real(487548317153567698560.L))-real(995411147521867384560.L))- real(2315854506479446568160.L))-real(6561587768358431943120.L))- real(26246351073433727772480.L))-real(255901922965978845781680.L))+ real(1876614101750511535732320.L))-real(2814921152625767303598480.L))+ real(1231528004273773195324335.L))/real(55418760192319793789595075.L); _C4x[31] = (_n*(_n*(_n*(_n*(_n*(_n*(_n*(_n*(_n*(_n*(_n*(_n*(_n*(_n*(_n* (_n*(_n*(_n*(_n*(_n*(_n*(_n*(_n*(_n*(_n*((-real(2005643965009613760.L)* _n-real(2429409496302821760.L))*_n-real(2965661919767726400.L))- real(3650954726278679040.L))-real(4536121407398159040.L))- real(5692895300159591040.L))-real(7224136946783000640.L))- real(9279964644013781760.L))-real(12083782077375046080.L))- real(15975351585978180480.L))-real(21484119234250012480.L))- real(29458069729374755840.L))-real(41298475551499997376.L))- real(59405582542762415232.L))-real(88066170611639019072.L))- real(135322933470303651072.L))-real(217183567366376042432.L))- real(367898778451146253696.L))-real(667729216971190543680.L))- real(1328392516302474309120.L))-real(3006547955780334141120.L))- real(8288321391610650875520.L))-real(32421963090712251954240.L))- real(314956212881204733269760.L))+real(2440910649829336682840640.L))- real(4776835895364938454591360.L))+real(3753228203501023071464640.L))- real(1055595432234662738849430.L))/real(55418760192319793789595075.L); _C4x[32] = (_n*(_n*(_n*(_n*(_n*(_n*(_n*(_n*(_n*(_n*(_n*(_n*(_n*(_n*(_n* (_n*(_n*(_n*(_n*(_n*(_n*(_n*(_n*(_n*((-real(3816953936920456800.L)*_n- real(4677189639754023600.L))*_n-real(5782666059330422400.L))- real(7219608463225577040.L))-real(9110981115729129120.L))- real(11635224361148640240.L))-real(15056331161655618240.L))- real(19773358779936305040.L))-real(26404265548567707360.L))- real(35932449379408457008.L))-real(49972283914418892544.L))- real(71270574874949052624.L))-real(104699952805366775584.L))- real(159340438154165872240.L))-real(253142983745603515200.L))- real(424262440221289179664.L))-real(761531304077056446304.L))- real(1497797891719239317424.L))-real(3350658144843794241408.L))- real(9126515871644592444240.L))-real(35225365914345266220960.L))- real(335778588926305020395760.L))+real(2502666770002121924658240.L))- real(4389702217031790969947280.L))+real(2375294772145752363409440.L))+ real(426503204943298076302800.L))-real(527797716117331369424715.L))/ real(55418760192319793789595075.L); _C4x[33] = (_n*(_n*(_n*(_n*(_n*(_n*(_n*(_n*(_n*(_n*(_n*(_n*(_n*(_n*(_n* (_n*(_n*(_n*(_n*(_n*(_n*(_n*(_n*((-real(6688421299693756800.L)*_n- real(8318723752159902720.L))*_n-real(10456318988493686400.L))- real(13297764205111054080.L))-real(17132844985350284160.L))- real(22398068386194117120.L))-real(29766990506144868480.L))- real(40307665023770473728.L))-real(55767164347954251136.L))- real(79107406984970348544.L))-real(115563675901661162112.L))- real(174856271434465483520.L))-real(276130458992508848000.L))- real(459921286559271452160.L))-real(820204488667933084800.L))- real(1602120454252197789952.L))-real(3556690557130179471744.L))- real(9598342522049367561216.L))-real(36574602887685465525888.L))- real(341411008525015711000320.L))+real(2442779585045092025685120.L))- real(3876334153582298915351040.L))+real(1269088269550736719351680.L))+ real(1574781064406023666348800.L))-real(1207332149377951477534080.L))+ real(191926442224484134336260.L))/real(55418760192319793789595075.L); _C4x[34] = (_n*(_n*(_n*(_n*(_n*(_n*(_n*(_n*(_n*(_n*(_n*(_n*(_n*(_n*(_n* (_n*(_n*(_n*(_n*(_n*(_n*(_n*((-real(11462002110786579840.L)*_n- real(14532667058590206000.L))*_n-real(18665387532273821280.L))- real(24322846465933422480.L))-real(32217392904290184000.L))- real(43476036592309432560.L))-real(59938038670189729824.L))- real(84714223035796826192.L))-real(123289476739392063744.L))- real(185820728393648468400.L))-real(292255603104432757216.L))- real(484690342916587907344.L))-real(860347070756853376704.L))- real(1671653262597377206896.L))-real(3687406234588003306400.L))- real(9868141697134848102864.L))-real(37152156376431500944512.L))- real(340202559960650654251824.L))+real(2351419036440507359736480.L))- real(3451546200146088209466000.L))+real(668997549187553810374080.L))+ real(1735001630130614851288080.L))-real(961079620188970325786400.L))+ real(45931114378509023601840.L))+real(6151488532836029946675.L))/ real(55418760192319793789595075.L); _C4x[35] = (_n*(_n*(_n*(_n*(_n*(_n*(_n*(_n*(_n*(_n*(_n*(_n*(_n*(_n*(_n* (_n*(_n*(_n*(_n*(_n*(_n*((-real(19847244376334498880.L)*_n- real(25801395373244530560.L))*_n-real(34092435167930139840.L))- real(45891051087732082944.L))-real(63104393053459745088.L))- real(88951984456050754176.L))-real(129098616922168078784.L))- real(194010162422931018752.L))-real(304186862818327078464.L))- real(502757981992172660096.L))-real(888964630867993808576.L))- real(1719317325273701588736.L))-real(3770674992738836845376.L))- real(10013419727824349669504.L))-real(37287277314258483567552.L))- real(335749034487865066596864.L))+real(2255512032774074262089664.L))- real(3115802587512100727622528.L))+real(326338699607330562336576.L))+ real(1684557160859615373085440.L))-real(778370888335670830751040.L))+ real(134725851640102540702080.L))-real(177548845496757570225600.L))+ real(61514885328360299466750.L))/real(55418760192319793789595075.L); _C4x[36] = (_n*(_n*(_n*(_n*(_n*(_n*(_n*(_n*(_n*(_n*(_n*(_n*(_n*(_n*(_n* (_n*(_n*(_n*(_n*(_n*((-real(35580188330979656480.L)*_n- real(47800971987094641840.L))*_n-real(65598887342296596928.L))- real(92274510981260121296.L))-real(133624133893158205536.L))- real(200333254919296556784.L))-real(313279606173452163840.L))- real(516256798917127139088.L))-real(909680190002436316576.L))- real(1751995742683927984432.L))-real(3821884125050105443392.L))- real(10077766696148516843856.L))-real(37158662647818267103968.L))- real(329759833992830299966320.L))+real(2163767191649939424793216.L))- real(2848512689616706443312016.L))+real(118143397748753246652384.L))+ real(1590687092722570815621712.L))-real(664715603097770302760640.L))+ real(186479282153894749573680.L))-real(204973438336645753269600.L))+ real(35733228744713565906960.L))+real(8419096070430488044665.L))/ real(55418760192319793789595075.L); _C4x[37] = (_n*(_n*(_n*(_n*(_n*(_n*(_n*(_n*(_n*(_n*(_n*(_n*(_n*(_n*(_n* (_n*(_n*(_n*(_n*((-real(67614346374123618048.L)*_n- real(94942623276258132992.L))*_n-real(137228018043831245056.L))- real(205309620072052627968.L))-real(320314130323449012992.L))- real(526432706840689430528.L))-real(924657026068917288192.L))- real(1773897164768946914816.L))-real(3850578519939696887552.L))- real(10087913193119159688192.L))-real(36869909959797637243136.L))- real(323101223380667185459712.L))+real(2078802922316667474154752.L))- real(2631988397451844271368192.L))-real(14930806384683051123968.L))+ real(1494910512547290465575424.L))-real(590282828713516030168832.L))+ real(212501349224908436360192.L))-real(202201125550628328827136.L))+ real(61134319420473445332480.L))-real(56230572578378141233920.L))+ real(26479967975403145628040.L))/real(55418760192319793789595075.L); _C4x[38] = (_n*(_n*(_n*(_n*(_n*(_n*(_n*(_n*(_n*(_n*(_n*(_n*(_n*(_n*(_n* (_n*(_n*(_n*((-real(140135640797037619776.L)*_n- real(209265279469938687024.L))*_n-real(325786240806027892128.L))- real(534090489468272393232.L))-real(935316351805514224896.L))- real(1787817966663647237616.L))-real(3863082324469943710816.L))- real(10061107370431775593936.L))-real(36483809234456367677376.L))- real(316230073692359390037936.L))+real(2001043590628557886029024.L))- real(2453360065026297009092496.L))-real(103394407542075265698432.L))+ real(1407604530728476508425872.L))-real(538063919347557729952224.L))+ real(224182862009367660707504.L))-real(193375802540129176491328.L))+ real(77398825291951865154768.L))-real(76323569275099051176096.L))+ real(20299498139747185536240.L))+real(4968168138077891678295.L))/ real(55418760192319793789595075.L); _C4x[39] = (_n*(_n*(_n*(_n*(_n*(_n*(_n*(_n*(_n*(_n*(_n*(_n*(_n*(_n*(_n* (_n*(_n*((-real(330035192316442762432.L)*_n- real(539787852319707457920.L))*_n-real(942651980471728721984.L))- real(1795714705202389126144.L))-real(3863762192004920940480.L))- real(10008869602452047523456.L))-real(36039662586506876291904.L))- real(309392037837973786585344.L))+real(1930118996419671573986624.L))- real(2303504873890674693034880.L))-real(163987936825440233346624.L))+ real(1330502303732325803588096.L))-real(499154401904498160623040.L))+ real(228101605850403113609088.L))-real(184119365546522586214720.L))+ real(87322616002846390639872.L))-real(83535203192403975923904.L))+ real(33118898100595057181312.L))-real(24847299380732185680960.L))+ real(13670894558772762743250.L))/real(55418760192319793789595075.L); _C4x[40] = (_n*(_n*(_n*(_n*(_n*(_n*(_n*(_n*(_n*(_n*(_n*(_n*(_n*(_n*(_n* (_n*((-real(947388313020058838496.L)*_n-real(1799003943382836775600.L))* _n-real(3855720267295109129984.L))-real(9939093360251941403472.L))- real(35562658326305742522400.L))-real(302718790207011419004400.L))+ real(1865402076799515601556160.L))-real(2175912282139128640165520.L))- real(206430197983594870667872.L))+real(1262901198421429395158736.L))- real(468727463627992918545280.L))+real(227818255852780731967024.L))- real(175710166112086001196192.L))+real(93128707316214767719312.L))- real(85623932461375306643904.L))+real(41437384895418975263472.L))- real(36831773863672624352992.L))+real(12053690019269973776464.L))+ real(2980680072920487920157.L))/real(55418760192319793789595075.L); _C4x[41] = (_n*(_n*(_n*(_n*(_n*(_n*(_n*(_n*(_n*(_n*(_n*(_n*(_n*(_n*(_n*((- real(3841207564338212515968.L)*_n-real(9857294793660195600384.L))*_n- real(35069211459881194299264.L))-real(296278466827896236577024.L))+ real(1806221212550456218208640.L))-real(2065860304455691649088000.L))- real(236638770613027231810944.L))+real(1203530014670064977607936.L))- real(444020900085069505371264.L))+real(225268510860390785385472.L))- real(168318066923378504338304.L))+real(96301772308684493015808.L))- real(85532415108775652909696.L))+real(46865263338914335490560.L))- real(42889332527017771659648.L))+real(19806892137255872551168.L))- real(13204705668013650315392.L))+real(7945226928207927374604.L))/ real(55418760192319793789595075.L); _C4x[42] = (_n*(_n*(_n*(_n*(_n*(_n*(_n*(_n*(_n*(_n*(_n*(_n*(_n*(_n*((- real(34570132243058804572416.L)*_n-real(290103005755605244351536.L))*_n+ real(1751942018638081895464224.L))-real(1969860415982855605457040.L))- real(258364250937265972420800.L))+real(1151120746513593270556944.L))- real(423365216157605967320736.L))+real(221524358403251902655664.L))- real(161839711497044888838272.L))+real(97790402192806968815184.L))- real(84483808178319136553568.L))+real(50383607194859243315696.L))- real(45979102886110400372800.L))+real(24993236713673849850768.L))- real(20675861806313495973408.L))+real(7622298985427171962672.L))+ real(1892850834301749304731.L))/real(55418760192319793789595075.L); _C4x[43] = (_n*(_n*(_n*(_n*(_n*(_n*(_n*(_n*(_n*(_n*(_n*(_n*(_n*(_n* (real(1701994960858239813972672.L)*_n- real(1885287950016774159024000.L))-real(274065984469264122532800.L))+ real(1104566494831757719338240.L))-real(405699254588547485206080.L))+ real(217190621111722953075072.L))-real(156125915240022434540736.L))+ real(98196995368563810844160.L))-real(83022046253984048172864.L))+ real(52617302280444217045632.L))-real(47487104885086738085312.L))+ real(28531059373389509918464.L))-real(25079781177753740945472.L))+ real(12727519124781414210432.L))-real(7882579214068057288384.L))+ real(5015892273759870291558.L))/real(55418760192319793789595075.L); _C4x[44] = (_n*(_n*(_n*(_n*(_n*(_n*(_n*(_n*(_n*(_n*(_n*(_n* ((real(1062944632259898279572304.L)-real(285404106963266611203744.L)* _n)*_n-real(390317526654249104686656.L))+ real(212613189904717741628976.L))-real(151041081363274969789920.L))+ real(97906868047333644171024.L))-real(81401059645446646761856.L))+ real(53974314048451953240560.L))-real(48111090638036365839648.L))+ real(30962521854484358144720.L))-real(27737242043737957995712.L))+ real(16267332716492314463664.L))-real(12811373250402984457312.L))+ real(5090958618155564996240.L))+real(1266952522750128264225.L))/ real(55418760192319793789595075.L); _C4x[45] = (_n*(_n*(_n*(_n*(_n*(_n*(_n*(_n*(_n*(_n*(_n* ((real(207990932412946446206976.L)-real(376732087321994151448064.L)*_n)* _n-real(146474601612938666443264.L))+real(97169353635137985289216.L))- real(79743103258702858458624.L))+real(54726083031053696315392.L))- real(48223322779126909061632.L))+real(32629351855022582252544.L))- real(29350330880583378394624.L))+real(18774027310783717152768.L))- real(15996417250061875941888.L))+real(8639532003336273980416.L))- real(5095874742975159969280.L))+real(3365588334499885362960.L))/ real(55418760192319793789595075.L); _C4x[46] = (_n*(_n*(_n*(_n*(_n*(_n*(_n*(_n*(_n*(_n* ((real(96147780439629766979536.L)-real(142339128738509340355008.L)*_n)* _n-real(78107652208277513893408.L))+real(55056235240537884001008.L))- real(48032132090083457656448.L))+real(33756366984930393685008.L))- real(30313847800677949581024.L))+real(20570433288805596262192.L))- real(18101183122240008151872.L))+real(11184879250589618139216.L))- real(8509304451750124537760.L))+real(3556079264867171963760.L))+ real(886075630207202901375.L))/real(55418760192319793789595075.L); _C4x[47] = (_n*(_n*(_n*(_n*(_n*(_n*(_n*(_n*(_n* ((real(55090871324183468777088.L)-real(76523089763985821705664.L)*_n)* _n-real(47658833209034917312320.L))+real(34496060551838452376064.L))- real(30860325336708127460544.L))+real(21863834399640327325056.L))- real(19510153585784551710272.L))+real(13046295420881552462080.L))- real(10857175459784817992640.L))+real(6122978918822394760320.L))- real(3491055165207878210880.L))+real(2366297638955216874810.L))/ real(55418760192319793789595075.L); _C4x[48] = (_n*(_n*(_n*(_n*(_n*(_n*(_n*(_n* ((real(34954321124911591136592.L)-real(47176442350469959824736.L)*_n)* _n-real(31132163789696460427136.L))+real(22792973292386146379696.L))- real(20456406103376609499552.L))+real(14424895721637750243344.L))- real(12503771489851888195520.L))+real(8020051384627945661040.L))- real(5950645450397488696800.L))+real(2576558619861345700560.L))+ real(642510925765171283205.L))/real(55418760192319793789595075.L); _C4x[49] = (_n*(_n*(_n*(_n*(_n*(_n*(_n*((real(23453686777064094620672.L)- real(31219511051863266258816.L)*_n)*_n-real(21086659018714357475456.L))+ real(15453430466497973157120.L))-real(13674031491581111843200.L))+ real(9446133588918941560320.L))-real(7721456099348769690240.L))+ real(4492650943146103422720.L))-real(2499503236834749129600.L))+ real(1726343175137933236500.L))/real(55418760192319793789595075.L); _C4x[50] = (_n*(_n*(_n*(_n*(_n*(_n*((real(5407589072646469496816.L)- real(7165426380527719942528.L)*_n)*_n-real(4837362034234238303520.L))+ real(3510391217391502943440.L))-real(3005898282995297604800.L))+ real(1981915927642556595120.L))-real(1443361750708063192160.L))+ real(641358162809287868560.L))+real(160019031014469778305.L))/ real(18472920064106597929865025.L); _C4x[51] = (_n*(_n*(_n*(_n*(_n*((real(757562138772545005440.L)- real(1007548363563399060928.L)*_n)*_n-real(665218929187409178944.L))+ real(470942424602221403392.L))-real(379672162975286765760.L))+ real(226107025984450495104.L))-real(123519074556567739456.L))+ real(86516815491975991122.L))/real(3694584012821319585973005.L); _C4x[52] = (_n*(_n*(_n*(_n*((real(91200994242608567600.L)- real(122944302767324211936.L)*_n)*_n-real(77327312120249875264.L))+ real(52063113028397988432.L))-real(37380420194747347872.L))+ real(16937015255732167024.L))+real(4227381449623069023.L))/ real(636997243589882687236725.L); _C4x[53] = (_n*(_n*(_n*((real(2010823247286486016.L)- real(2787158949471683840.L)*_n)*_n-real(1603653185828168448.L))+ real(972166889809842688.L))-real(523716116426936576.L))+ real(370790699985183192.L))/real(20548298180318796362475.L); _C4x[54] = (_n*(_n*((real(106111501951975728.L)- real(155064719533064896.L)*_n)*_n-real(75346950652689248.L))+ real(34656942644604176.L))+real(8652573946332745.L))/ real(1666078230836659164525.L); _C4x[55] = (_n*((real(5071657205888.L)-real(8250530877888.L)*_n)*_n- real(2702497967936.L))+real(1929520489962.L))/ real(135906536490468975.L); _C4x[56] = ((real(1519083436272.L)-real(3263721307296.L)*_n)*_n+ real(379339642199.L))/real(91657896702874425.L); _C4x[57] = (real(90505212.L)-real(125915776.L)*_n)/real(7959869448795.L); _C4x[58] = real(917561.L)/real(273868982145.L); _C4x[59] = (_n*(_n*(_n*(_n*(_n*(_n*(_n*(_n*(_n*(_n*(_n*(_n*(_n*(_n*(_n* (_n*(_n*(_n*(_n*(_n*(_n*(_n*(_n*(_n*(_n*(_n*(real(10225920963679200.L)* _n+real(13348403825839680.L))+real(17610819000996000.L))+ real(23504000383768320.L))+real(31765556074216800.L))+ real(43523664374308800.L))+real(60537460447902240.L))+ real(85608529926326400.L))+real(123303898748724960.L))+ real(181263444621537600.L))+real(272641107033629600.L))+ real(420829567562496512.L))+real(668981785391468640.L))+ real(1100103380421526208.L))+real(1881755782299979040.L))+ real(3371833890456071040.L))+real(6387751981364001248.L))+ real(12954182339829093440.L))+real(28616966441622451872.L))+ real(70659176399067782400.L))+real(203145132147319874400.L))+ real(731322475730351547840.L))+real(3859757510799077613600.L))+ real(52492702146867455544960.L))-real(590542899152258874880800.L))+ real(1706012819773192305211200.L))-real(1876614101750511535732320.L))+ real(703730288156441825899620.L))/real(92364600320532989649325125.L); _C4x[60] = (_n*(_n*(_n*(_n*(_n*(_n*(_n*(_n*(_n*(_n*(_n*(_n*(_n*(_n*(_n* (_n*(_n*(_n*(_n*(_n*(_n*(_n*(_n*(_n*(_n*(real(55388496851101440.L)*_n+ real(73297116867312000.L))+real(98160656573506560.L))+ real(133181191363743360.L))+real(183292111100862720.L))+ real(256250070250062720.L))+real(364526643557260800.L))+ real(528677904833124480.L))+real(783535482429889280.L))+ real(1189983324838874496.L))+real(1858254845525170176.L))+ real(2996123551667774080.L))+real(5013842433670796544.L))+ real(8766768115185784704.L))+real(16157555531640001024.L))+ real(31764404393681038464.L))+real(67735348410140839680.L))+ real(160631861013880758656.L))+real(440913260730182962176.L))+ real(1505040457300143765120.L))+real(7475740863021371377920.L))+ real(95071921844945701219200.L))-real(1000449146799120917445120.L))+ real(2782113213783975143882880.L))-real(3464518341693252065967360.L))+ real(2047215383727830766253440.L))-real(469153525437627883933080.L))/ real(92364600320532989649325125.L); _C4x[61] = (_n*(_n*(_n*(_n*(_n*(_n*(_n*(_n*(_n*(_n*(_n*(_n*(_n*(_n*(_n* (_n*(_n*(_n*(_n*(_n*(_n*(_n*(_n*(_n*(real(193786477152168000.L)*_n+ real(260786717022574080.L))+real(355789016082678720.L))+ real(492766878916663680.L))+real(693948215922327360.L))+ real(995554358851411200.L))+real(1458219485527055040.L))+ real(2186561839577227392.L))+real(3367385075175560768.L))+ real(5347583613890782208.L))+real(8801246886455325120.L))+ real(15109857583132764032.L))+real(27289946337266150720.L))+ real(52455989242200042240.L))+real(109080529302663219392.L))+ real(251462306635481083520.L))+real(668411443501940163648.L))+ real(2198913569538989388288.L))+real(10459677882354003828672.L))+ real(126190223131095152588160.L))-real(1238779015834356594091200.L))+ real(3091381362965054920669440.L))-real(3052296239539910576834880.L))+ real(682405127909276922084480.L))+real(761144181129578105401920.L))- real(383852884448968268672520.L))/real(92364600320532989649325125.L); _C4x[62] = (_n*(_n*(_n*(_n*(_n*(_n*(_n*(_n*(_n*(_n*(_n*(_n*(_n*(_n*(_n* (_n*(_n*(_n*(_n*(_n*(_n*(_n*(_n*(real(564397049921172480.L)*_n+ real(775607788496883840.L))+real(1083186997807084800.L))+ real(1540138644113074560.L))+real(2234348005630195200.L))+ real(3315926665505055360.L))+real(5050048925185472256.L))+ real(7923556934823951232.L))+real(12871056955825911808.L))+ real(21783222619092923520.L))+real(38731364103567046912.L))+ real(73174877880134192512.L))+real(149279729934157036032.L))+ real(336833892044063327872.L))+real(873810621715813169920.L))+ real(2794690680798804402048.L))+real(12851978308127269420032.L))+ real(148549612910816161650816.L))-real(1373317620657001605169920.L))+ real(3097662963746932046524800.L))-real(2370784950212081862197760.L))- real(455857676538585798153600.L))+real(1550078616336909569621760.L))- real(682405127909276922084480.L))+real(68896671567763535402760.L))/ real(92364600320532989649325125.L); _C4x[63] = (_n*(_n*(_n*(_n*(_n*(_n*(_n*(_n*(_n*(_n*(_n*(_n*(_n*(_n*(_n* (_n*(_n*(_n*(_n*(_n*(_n*(_n*(real(1510159456347225120.L)*_n+ real(2131225074243766080.L))+real(3067263814697368160.L))+ real(4513288224908855680.L))+real(6810844338272471200.L))+ real(10581309789942926272.L))+real(17006095585078593248.L))+ real(28450673954439392768.L))+real(49952932107547825440.L))+ real(93079891060155650112.L))+real(187003428066745553760.L))+ real(414784851299522417280.L))+real(1055235908022005293472.L))+ real(3298920275002817205440.L))+real(14757435305564548669408.L))+ real(164615132310776762906368.L))-real(1446852921979182545850848.L))+ real(2993432434987727176243520.L))-real(1793960530157701997269920.L))- real(1016707823288546414175360.L))+real(1487794318820541296130720.L))- real(371105527406723946553920.L))-real(22386593562634650158880.L))- real(14763572478806471872020.L))/real(92364600320532989649325125.L); _C4x[64] = (_n*(_n*(_n*(_n*(_n*(_n*(_n*(_n*(_n*(_n*(_n*(_n*(_n*(_n*(_n* (_n*(_n*(_n*(_n*(_n*(_n*(real(3926503759589752320.L)*_n+ real(5736057719114897664.L))+real(8589583111438156800.L))+ real(13234884752815992576.L))+real(21082484153642273280.L))+ real(34932749781583856896.L))+real(60695852194351403008.L))+ real(111809155009711676160.L))+real(221801493924987622912.L))+ real(485023232422784790784.L))+real(1214043802728328879104.L))+ real(3723758295178525902592.L))+real(16275479861714760655360.L))+ real(176182036867386606083328.L))-real(1483900099438236172621824.L))+ real(2853910160118121085694720.L))-real(1353918119411404304454144.L))- real(1264163324955721694918400.L))+real(1273007027473829018563584.L))- real(210408895481144042430720.L))+real(105960500928042046487040.L))- real(152440107163348833749760.L))+real(33579890343951975238320.L))/ real(92364600320532989649325125.L); _C4x[65] = (_n*(_n*(_n*(_n*(_n*(_n*(_n*(_n*(_n*(_n*(_n*(_n*(_n*(_n*(_n* (_n*(_n*(_n*(_n*(_n*(real(10348807236233434752.L)*_n+ real(15833236058289707520.L))+real(25030870678909246848.L))+ real(41136745997606531328.L))+real(70842170185100551296.L))+ real(129234137024964937728.L))+real(253616491925840964480.L))+ real(547913146278462578432.L))+real(1352561511617963045504.L))+ real(4081499505667871798784.L))+real(17487479030009948141952.L))+ real(184503743811725745818880.L))-real(1498633725517251663134592.L))+ real(2708950537964498237039616.L))-real(1024358657433489622349952.L))- real(1357718080316965863965952.L))+real(1072802112995662905134720.L))- real(155746014496473218395648.L))+real(187782414014634557150592.L))- real(149444158084028359776000.L))+real(6338128122996380081280.L))+ real(1482959464675435083120.L))/real(92364600320532989649325125.L); _C4x[66] = (_n*(_n*(_n*(_n*(_n*(_n*(_n*(_n*(_n*(_n*(_n*(_n*(_n*(_n*(_n* (_n*(_n*(_n*(_n*(real(28813974765118858240.L)*_n+ real(47018702229964543744.L))+real(80348922982315178496.L))+ real(145342299480053398784.L))+real(282567261500227801088.L))+ real(604059413193177260800.L))+real(1473262487019278362112.L))+ real(4383038320173895665920.L))+real(18457229388826488601600.L))+ real(190454066254228843818752.L))-real(1499478418032986585689600.L))+ real(2570244849456177085371648.L))-real(776332302242292094294016.L))- real(1376417232538117303272704.L))+real(914176297176770559163904.L))- real(145166482459855919292160.L))+real(223399040905236937266176.L))- real(125007388518174757910784.L))+real(34464719880409301543424.L))- real(53065041475699904582400.L))+real(17165763666448529386800.L))/ real(92364600320532989649325125.L); _C4x[67] = (_n*(_n*(_n*(_n*(_n*(_n*(_n*(_n*(_n*(_n*(_n*(_n*(_n*(_n*(_n* (_n*(_n*(_n*(real(89213549963721942624.L)*_n+ real(160178600054690713152.L))+real(308847440495627304480.L))+ real(654128645982132822528.L))+real(1578464349274375357920.L))+ real(4637582930729589290432.L))+real(19234163038099038821792.L))+ real(194648740348473794931072.L))-real(1491588254398097307949728.L))+ real(2441931481777210121805120.L))-real(587403086315149652198112.L))- real(1358958355574264419618560.L))+real(793071656092041900786912.L))- real(149884297159121689770816.L))+real(232915693481018797481120.L))- real(106097486461191358236544.L))+real(59673903887854299030624.L))- real(65732112028760785933248.L))+real(8325417459220161461280.L))+ real(2279862488501171416500.L))/real(92364600320532989649325125.L); _C4x[68] = (_n*(_n*(_n*(_n*(_n*(_n*(_n*(_n*(_n*(_n*(_n*(_n*(_n*(_n*(_n* (_n*(_n*(real(332676211076188667136.L)*_n+ real(698771409436338781824.L))+real(1670231531257124333568.L))+ real(4852771423956136513920.L))+real(19856578439370859107072.L))+ real(197527911063230844470400.L))-real(1478199428698110793105920.L))+ real(2324951000087213754275712.L))-real(441480804322928718862080.L))- real(1324621492392870291699072.L))+real(700720820593975863399424.L))- real(158384241916642412929664.L))+real(229787803240103030947584.L))- real(94727874271911753084800.L))+real(76721835386908846844416.L))- real(65395982632546671041664.L))+real(19464345252996169356544.L))- real(23969947940443760716160.L))+real(9752291202628836492120.L))/ real(92364600320532989649325125.L); _C4x[69] = (_n*(_n*(_n*(_n*(_n*(_n*(_n*(_n*(_n*(_n*(_n*(_n*(_n*(_n*(_n* (_n*(real(1750360477507800441536.L)*_n+real(5034896784851855780864.L))+ real(20354291808487928837440.L))+real(199410924180410437662336.L))- real(1461389035468887244838976.L))+real(2218912856068127267586304.L))- real(327220860548568939857344.L))-real(1283189264783818863506560.L))+ real(629471489523330331159744.L))-real(166461107883227116972544.L))+ real(221216258070492868525888.L))-real(88635937521315812663168.L))+ real(86705203987721024664000.L))-real(61948693544619373024512.L))+ real(29724227698789988205632.L))-real(33609489189994449029760.L))+ real(6542430603722650203840.L))+real(1759266285719289723880.L))/ real(92364600320532989649325125.L); _C4x[70] = (_n*(_n*(_n*(_n*(_n*(_n*(_n*(_n*(_n*(_n*(_n*(_n*(_n*(_n*(_n* (real(20750676603924363380736.L)*_n+real(200532809147824922866560.L))- real(1442514123424746242631936.L))+real(2122918714733138306165376.L))- real(236599827628978397551104.L))-real(1239671295066849607433856.L))+ real(573598087596734159074560.L))-real(172832537264684588828544.L))+ real(210776075512535926457344.L))-real(85667085855198022840448.L))+ real(91750331278805358367488.L))-real(58511115428931574102400.L))+ real(37716213508602300539392.L))-real(36872632132887958495872.L))+ real(12694658546883640848640.L))-real(12765430379737479113600.L))+ real(6025446039159729483000.L))/real(92364600320532989649325125.L); _C4x[71] = (_n*(_n*(_n*(_n*(_n*(_n*(_n*(_n*(_n*(_n*(_n*(_n*(_n* ((real(2035928845700220481028928.L)-real(1422473440015137751405920.L)* _n)*_n-real(163882404607538930695200.L))- real(1196615424836726937694080.L))+real(529003988833701589478688.L))- real(177330013217149431865920.L))+real(200156031948174846936672.L))- real(84385655624976395302144.L))+real(93628316085241762426784.L))- real(55840878314952302921664.L))+real(43387747643814191794400.L))- real(37497004539622719339136.L))+real(18071538116079585014304.L))- real(19292542849512407051584.L))+real(4795965398911197711200.L))+ real(1267516030173145370940.L))/real(92364600320532989649325125.L); _C4x[72] = (_n*(_n*(_n*(_n*(_n*(_n*(_n*(_n*(_n*(_n*(_n*(_n*((- real(104913580559080807621632.L)*_n-real(1155273392742248110536192.L))* _n+real(492787395690658718947328.L))-real(180168311129085732035072.L))+ real(190100239465169451258880.L))-real(83937140546282456677888.L))+ real(93573752982776103833600.L))-real(53947756308357148959232.L))+ real(47142507870816502516736.L))-real(37139814175395887531520.L))+ real(22434457182073563777024.L))-real(22508469801129060084224.L))+ real(8780780057373695443968.L))-real(7597582748731977469440.L))+ real(3969095839988936541920.L))/real(92364600320532989649325125.L); _C4x[73] = (_n*(_n*(_n*(_n*(_n*(_n*(_n*(_n*(_n*(_n*(_n*(_n* (real(462884984899016179918080.L)*_n-real(181657666546014617932800.L))+ real(180890017322133425173248.L))-real(83841828039865046361600.L))+ real(92390039530657458077952.L))-real(52653850736823081416704.L))+ real(49450831092728900013824.L))-real(36500401767585397737984.L))+ real(25788291725039460834560.L))-real(24010147167193701047296.L))+ real(12111681294802971028224.L))-real(12063452177263553457664.L))+ real(3511708739491195255040.L))+real(916661338230053172960.L))/ real(92364600320532989649325125.L); _C4x[74] = (_n*(_n*(_n*(_n*(_n*(_n*(_n*(_n*(_n*(_n*(_n* (real(172586112286902449903616.L)*_n-real(83843124463314953697792.L))+ real(90582884130577018475520.L))-real(51773100267400389139968.L))+ real(50717873269527405072384.L))-real(35851877739928402641408.L))+ real(28260766168381046049792.L))-real(24641738258264699102720.L))+ real(14832274053282260420608.L))-real(14672265221402357893632.L))+ real(6309801849014622766080.L))-real(4893746262753346629120.L))+ real(2747719450008674799840.L))/real(92364600320532989649325125.L); _C4x[75] = (_n*(_n*(_n*(_n*(_n*(_n*(_n*(_n*(_n*(_n* (real(88464230067365972517088.L)*_n-real(51158198782477902887360.L))+ real(51256618816174764684192.L))-real(35283865772827250342656.L))+ real(30014945147323219818080.L))-real(24842081849940667251776.L))+ real(16997908311482491636000.L))-real(16188403886159756795264.L))+ real(8594671248920096279520.L))-real(8043852184060868280000.L))+ real(2611662709409341529760.L))+real(675732084838686311940.L))/ real(92364600320532989649325125.L); _C4x[76] = (_n*(_n*(_n*(_n*(_n*(_n*(_n*(_n*(_n* (real(51296797078671665468160.L)*_n-real(34811196771702299960448.L))+ real(31206641459411733076992.L))-real(24836160156843489059712.L))+ real(18681678895674326426880.L))-real(17062382565779482378880.L))+ real(10460065523713051471360.L))-real(10078508632973323616640.L))+ real(4672292491084876035840.L))-real(3342416484332444803200.L))+ real(1978656352225287827400.L))/real(92364600320532989649325125.L); _C4x[77] = (_n*(_n*(_n*(_n*(_n*(_n*(_n*(_n* (real(10656202668643435975104.L)*_n-real(8245754510254482276864.L))+ real(6654020647736230357568.L))-real(5852702008698615320960.L))+ real(3989947706091658142400.L))-real(3799868400102736666880.L))+ real(2113805151487135644480.L))-real(1878501406816923512960.L))+ real(660044494895188849600.L))+real(169684055409960861000.L))/ real(30788200106844329883108375.L); _C4x[78] = (_n*(_n*(_n*(_n*(_n*(_n*(_n*(real(20913313546959607811072.L)* _n-real(17830005446551747023232.L))+real(13178164975286764714240.L))- real(12262116723167456668800.L))+real(7705392247574002460160.L))- real(7219227959126401722240.L))+real(3547658462537036010240.L))- real(2387866187601348854400.L))+real(1471081318455683965800.L))/ real(92364600320532989649325125.L); _C4x[79] = (_n*(_n*(_n*(_n*(_n*(_n*(real(4711180203722749927520.L)*_n- real(4275879978901995198528.L))+real(2940155760331451541280.L))- real(2773854532947431196032.L))+real(1606094390631317806560.L))- real(1368369818748899046080.L))+real(510087411385434104992.L))+ real(130505638655798393988.L))/real(30788200106844329883108375.L); _C4x[80] = (_n*(_n*(_n*(_n*(_n*(real(111825452951270045184.L)*_n- real(104540386919149525760.L))+real(67360700047710462976.L))- real(61489086780213337344.L))+real(31633938350439698944.L))- real(20316775186789342976.L))+real(12907124073180226032.L))/ real(1061662072649804478727875.L); _C4x[81] = (_n*(_n*(_n*(_n*(real(7474051807931633280.L)*_n- real(6961858298376531456.L))+real(4168952324633580928.L))- real(3432280681360430848.L))+real(1338933524782046336.L))+ real(341311351846317424.L))/real(102741490901593981812375.L); _C4x[82] = (_n*(_n*(_n*(real(3522180730272768.L)*_n- real(3142089987455744.L))+real(1676633863151104.L))- real(1037928664983808.L))+real(675511217288336.L))/ real(71199924394729024125.L); _C4x[83] = (_n*(_n*(real(4862227565319072.L)*_n-real(3892692316249152.L))+ real(1573706902301664.L))+real(400010797142476.L))/ real(151082766398571343875.L); _C4x[84] = (_n*(real(412763643136.L)*_n-real(248137794944.L))+ real(164642704408.L))/real(21823308738779625.L); _C4x[85] = (real(17366491968.L)*_n+real(4404238552.L))/ real(2056299607605375.L); _C4x[86] = real(185528.L)/real(30429886905.L); _C4x[87] = (_n*(_n*(_n*(_n*(_n*(_n*(_n*(_n*(_n*(_n*(_n*(_n*(_n*(_n*(_n* (_n*(_n*(_n*(_n*(_n*(_n*(_n*(_n*(_n*((-real(284983078248960.L)*_n- real(407691551904000.L))*_n-real(592093576919040.L))- real(874138152410880.L))-real(1313921943375360.L))- real(2014318351207680.L))-real(3156074835993600.L))- real(5066044262603520.L))-real(8354529134819840.L))- real(14202699529193728.L))-real(24990939325026304.L))- real(45742344300271360.L))-real(87632701712098816.L))- real(177106426569409792.L))-real(381459995687959552.L))- real(887628066889290496.L))-real(2274088435832066560.L))- real(6594856463912993024.L))-real(22610936447701690368.L))- real(98922846958694895360.L))-real(650064422871423598080.L))- real(11376127400249912966400.L))+real(172917136483798677089280.L))- real(734897830056144377629440.L))+real(1469795660112288755258880.L))- real(1364810255818553844168960.L))+real(469153525437627883933080.L))/ real(129310440448746185509055175.L); _C4x[88] = (_n*(_n*(_n*(_n*(_n*(_n*(_n*(_n*(_n*(_n*(_n*(_n*(_n*(_n*(_n* (_n*(_n*(_n*(_n*(_n*(_n*(_n*(_n*((-real(861653267328000.L)*_n- real(1257419066695680.L))*_n-real(1866580716426240.L))- real(2823303349401600.L))-real(4359656760130560.L))- real(6888309378355200.L))-real(11165975109411840.L))- real(18628822411257856.L))-real(32110451109481472.L))- real(57454252534611968.L))-real(107338902927979520.L))- real(210952929008310272.L))-real(440372736334748672.L))- real(989280867938004992.L))-real(2435475357084664832.L))- real(6748907616017745920.L))-real(21961196894606814208.L))- real(90443745790806761472.L))-real(553967942968691414016.L))- real(8931319896842167695360.L))+real(123512240345570483635200.L))- real(473246899850396379402240.L))+real(864585682418993385446400.L))- real(839883234349879288719360.L))+real(419941617174939644359680.L))- real(85300640988659615260560.L))/real(43103480149582061836351725.L); _C4x[89] = (_n*(_n*(_n*(_n*(_n*(_n*(_n*(_n*(_n*(_n*(_n*(_n*(_n*(_n*(_n* (_n*(_n*(_n*(_n*(_n*(_n*(_n*((-real(14274538625341440.L)*_n- real(21343252110508800.L))*_n-real(32551079991252480.L))- real(50747404089473280.L))-real(81079762642457600.L))- real(133162564816981760.L))-real(225641748677005824.L))- real(396262261490943232.L))-real(725296576014782464.L))- real(1393576282060757760.L))-real(2837216312433839616.L))- real(6198328401867297024.L))-real(14789250483252317184.L))- real(39557611146245629696.L))-real(123628669481617000960.L))- real(485955931264974691584.L))-real(2818050389683096881152.L))- real(42543419048702717997824.L))+real(541899355639730636782080.L))- real(1858406998471881744902400.L))+real(2851182558714063901178880.L))- real(1882911600847078451838720.L))-real(61756120172785241817600.L))+ real(734897830056144377629440.L))-real(278867480155233357582600.L))/ real(129310440448746185509055175.L); _C4x[90] = (_n*(_n*(_n*(_n*(_n*(_n*(_n*(_n*(_n*(_n*(_n*(_n*(_n*(_n*(_n* (_n*(_n*(_n*(_n*(_n*(_n*((-real(63272655802122240.L)*_n- real(97514239231672320.L))*_n-real(153883215408742400.L))- real(249379662286651392.L))-real(416505325937147904.L))- real(720053843215040512.L))-real(1295574605803765760.L))- real(2443059370299097088.L))-real(4872274637860159488.L))- real(10403723182808711168.L))-real(24198789550791016448.L))- real(62897054614224273408.L))-real(190266399892582350848.L))- real(720263541748219363328.L))-real(3995286238793153855488.L))- real(57131473147589926256640.L))+real(678471555924374059696128.L))- real(2104505372891018930438144.L))+real(2700107586838745056985088.L))- real(967748079961632347750400.L))-real(1102509261189934422343680.L))+ real(1227321630381247753175040.L))-real(395239169105825547632640.L))+ real(26246351073433727772480.L))/real(129310440448746185509055175.L); _C4x[91] = (_n*(_n*(_n*(_n*(_n*(_n*(_n*(_n*(_n*(_n*(_n*(_n*(_n*(_n*(_n* (_n*(_n*(_n*(_n*(_n*((-real(252522425678361600.L)*_n- real(404540409892093440.L))*_n-real(667306280226658304.L))- real(1138243609979499008.L))-real(2018368194099821568.L))- real(3746012130808915456.L))-real(7341817097894551552.L))- real(15378806133081463296.L))-real(35015980682664576000.L))- real(88862392425594686976.L))-real(261612210224901236736.L))- real(959767001045613806080.L))-real(5129687653822518578176.L))- real(70076479488182086252032.L))+real(783832600852928646713344.L))- real(2226130096779574334171648.L))+real(2409821757379709188303872.L))- real(239150222073228853599744.L))-real(1494017625781889191065600.L))+ real(977216409599107430592000.L))-real(94909405739227845319680.L))- real(18851868263271284344320.L))-real(21228666309394926874800.L))/ real(129310440448746185509055175.L); _C4x[92] = (_n*(_n*(_n*(_n*(_n*(_n*(_n*(_n*(_n*(_n*(_n*(_n*(_n*(_n*(_n* (_n*(_n*(_n*(_n*((-real(973495431253567488.L)*_n- real(1641257265622900736.L))*_n-real(2873832677337503744.L))- real(5261101932096516096.L))-real(10158025789064611840.L))- real(20930633641192554496.L))-real(46796081238907090944.L))- real(116359447866156716032.L))-real(334728929598291601408.L))- real(1195619953343914549248.L))-real(6190862543882483095552.L))- real(81327683923032432062464.L))+real(863934270537120264566784.L))- real(2271442193347694086307840.L))+real(2096079424610442041903104.L))+ real(265875889944857000718336.L))-real(1544311105732929937156096.L))+ real(659123871408136075354112.L))-real(7393776218398452750336.L))+ real(130465103303238753423360.L))-real(122212111499827636439040.L))+ real(19136271448277532168480.L))/real(129310440448746185509055175.L); _C4x[93] = (_n*(_n*(_n*(_n*(_n*(_n*(_n*(_n*(_n*(_n*(_n*(_n*(_n*(_n*(_n* (_n*(_n*(_n*((-real(3840807064263579648.L)*_n- real(6947503040769950208.L))*_n-real(13239954509886692352.L))- real(26892807512740517376.L))-real(59180922678208880640.L))- real(144571946003804580352.L))-real(407626441370380739584.L))- real(1422659141802369662464.L))-real(7166776190652489263104.L))- real(91005163358079412130304.L))+real(924313509896617986905088.L))- real(2270947239939790397744640.L))+real(1802927901688480821940224.L))+ real(598127057836437928232448.L))-real(1454839332586740350071808.L))+ real(428226314172607749059072.L))-real(37289072743757418723328.L))+ real(209484673453844235836928.L))-real(93371862060784130374656.L))- real(4154759572265185605120.L))-real(2214281940405786630960.L))/ real(129310440448746185509055175.L); _C4x[94] = (_n*(_n*(_n*(_n*(_n*(_n*(_n*(_n*(_n*(_n*(_n*(_n*(_n*(_n*(_n* (_n*(_n*((-real(16517156456001093632.L)*_n- real(33127887155820871680.L))*_n-real(71891304803438116864.L))- real(172906707481828655104.L))-real(478994355649219706880.L))- real(1638064878248325431296.L))-real(8055227035135093325824.L))- real(99285305747425816510464.L))+real(969476781942207048925184.L))- real(2243439064506960248750080.L))+real(1544084416774299511996416.L))+ real(810475073455093316386816.L))-real(1321037679819531135795200.L))+ real(284344070234553422757888.L))-real(94216091717394767626240.L))+ real(222837426994882148728832.L))-real(57503509823823967862784.L))+ real(31293536043619139469312.L))-real(47935185269127583580160.L))+ real(11393792194349679912000.L))/real(129310440448746185509055175.L); _C4x[95] = (_n*(_n*(_n*(_n*(_n*(_n*(_n*(_n*(_n*(_n*(_n*(_n*(_n*(_n*(_n* (_n*((-real(84714001464288978432.L)*_n-real(200941415186676672256.L))* _n-real(547998684961299804160.L))-real(1840489117213869504768.L))- real(8859106670338174204416.L))-real(106351507021513312955136.L))+ real(1002924527198675185204224.L))-real(2200450490793923279355136.L))+ real(1321058042212741229261312.L))+real(942484193093322258059520.L))- real(1183409147433759727179776.L))+real(201072798095806514069248.L))- real(144042491577537801282048.L))+real(205482842661004182785280.L))- real(41776119603145535204352.L))+real(63975308760281854704384.L))- real(51746882357358674572800.L))+real(1868228623991352166656.L))+ real(530032146963507202728.L))/real(129310440448746185509055175.L); _C4x[96] = (_n*(_n*(_n*(_n*(_n*(_n*(_n*(_n*(_n*(_n*(_n*(_n*(_n*(_n*(_n*((- real(614135397419521059840.L)*_n-real(2029496796056565006336.L))*_n- real(9583769587121662514176.L))-real(112374216799040651728896.L))+ real(1027330790585017514738688.L))-real(2149078090210374168113152.L))+ real(1130838635691375328041984.L))+real(1021253030445581493417984.L))- real(1057337809042960081079296.L))+real(155632357157352456478720.L))- real(178978008684414653428736.L))+real(179081461018233307498496.L))- real(41258406674064609827840.L))+real(82777372390874374549504.L))- real(43722680618064601416704.L))+real(14181450230461498120192.L))- real(22747251805940995386368.L))+real(7056084237857907973616.L))/ real(129310440448746185509055175.L); _C4x[97] = (_n*(_n*(_n*(_n*(_n*(_n*(_n*(_n*(_n*(_n*(_n*(_n*(_n*(_n*((- real(10235580119040855076864.L)*_n-real(117504174823777438113024.L))*_n+ real(1044730268341507622493696.L))-real(2093700354938164863391488.L))+ real(969103139246444163197952.L))+real(1064823604916846067535616.L))- real(947306142763111052445184.L))+real(132650370052616144983296.L))- real(200231381396720892753920.L))+real(153384793406985951951616.L))- real(48088534189377285843456.L))+real(89848698361989693047040.L))- real(36467122299547148934144.L))+real(27762158605900621588224.L))- real(29218970048938255928832.L))+real(2943279304805965294848.L))+ real(870499733657429153544.L))/real(129310440448746185509055175.L); _C4x[98] = (_n*(_n*(_n*(_n*(_n*(_n*(_n*(_n*(_n*(_n*(_n*(_n*(_n*(_n* (real(1056674213554723884269568.L)*_n- real(2037015865816681711632384.L))+real(831503687880225443905536.L))+ real(1085128663156891375435776.L))-real(853316935986419365412864.L))+ real(122565343760489227583488.L))-real(211139283993045649489920.L))+ real(131788142645403755872256.L))-real(57115718899333218009088.L))+ real(89641594514284024332288.L))-real(32760078772324259758080.L))+ real(38194619800476822208512.L))-real(28893806218509377961984.L))+ real(8831092330942177443840.L))-real(12363529263319048421376.L))+ real(4611444212679725565312.L))/real(129310440448746185509055175.L); _C4x[99] = (_n*(_n*(_n*(_n*(_n*(_n*(_n*(_n*(_n*(_n*(_n*(_n*(_n* (real(714135758963408477853696.L)*_n+real(1090077500564781946573824.L))- real(773726121568277926055936.L))+real(119635921376481383894016.L))- real(214891046679826394757120.L))+real(114857184123263841731584.L))- real(65723571174824953470976.L))+real(85695615809430471326720.L))- real(32099511064053217691648.L))+real(44706355729364789949440.L))- real(26823885157692190339072.L))+real(15411402899308282194944.L))- real(17606310685717619955712.L))+real(2729933130679178224640.L))+ real(778760667879547712800.L))/real(129310440448746185509055175.L); _C4x[100] = (_n*(_n*(_n*(_n*(_n*(_n*(_n*(_n*(_n*(_n*(_n* ((real(120480286056717284327424.L)-real(706459247949592149282816.L)*_n)* _n-real(213966319828151508709376.L))+real(102084407499395048906752.L))- real(72848145868005195878400.L))+real(80247421404982120841216.L))- real(33338585931827047395328.L))+real(47966681842274535825408.L))- real(25032150605463492513792.L))+real(21123254785067415257088.L))- real(19134104642702225584128.L))+real(6224608695707437572096.L))- real(7414678232192469504000.L))+real(3160386894563310081600.L))/ real(129310440448746185509055175.L); _C4x[101] = (_n*(_n*(_n*(_n*(_n*(_n*(_n*(_n*(_n*(_n* ((real(92670063848109897812992.L)-real(210136488069104402829312.L)*_n)* _n-real(78232536984927882131456.L))+real(74544736435560844379136.L))- real(35503255021235290071040.L))+real(48944290218386746244096.L))- real(24062787725474210482176.L))+real(25401405602815184352256.L))- real(19104176304186263908352.L))+real(9927856472145816185856.L))- real(11290183932260669184000.L))+real(2268610117420575237120.L))+ real(628988336798597909280.L))/real(129310440448746185509055175.L); _C4x[102] = (_n*(_n*(_n*(_n*(_n*(_n*(_n*(_n*(_n* ((real(69208318099843060432896.L)-real(81988009811609591316480.L)*_n)* _n-real(37941510567141484167168.L))+real(48483596782281724133376.L))- real(23870410298944703004672.L))+real(28255073925778446123008.L))- real(18633694866097806934016.L))+real(13294244419840801177600.L))- real(13055711138703215001600.L))+real(4627976316221046620160.L))- real(4785265946199798743040.L))+real(2253263844142164228480.L))/ real(129310440448746185509055175.L); _C4x[103] = (_n*(_n*(_n*(_n*(_n*(_n*(_n*(_n* ((real(47206155369671896290048.L)-real(40273611851703196723712.L)*_n)* _n-real(24235646318026101360640.L))+real(29927299192503385578752.L))- real(18211267098451245590016.L))+real(16049867031414423308032.L))- real(13716076945588947584000.L))+real(6976005034656670306560.L))- real(7631058591415895892480.L))+real(1828722225001791732480.L))+ real(496659892475397059640.L))/real(129310440448746185509055175.L); _C4x[104] = (_n*(_n*(_n*(_n*(_n*(_n*(_n*((real(30711479976291538214912.L)- real(24932406073642308228096.L)*_n)*_n-real(17998624599329955245056.L))+ real(18133006616754891601920.L))-real(13875800189129263334400.L))+ real(9129713142486985297920.L))-real(9214753498037294423040.L))+ real(3545472475402409502720.L))-real(3266763146678944281600.L))+ real(1659947616321838074000.L))/real(129310440448746185509055175.L); _C4x[105] = (_n*(_n*(_n*(_n*(_n*(_n*((real(19598298905831804524800.L)- real(18007563017934550689792.L)*_n)*_n-real(13861414449459155004928.L))+ real(10972158532646516030208.L))-real(10044734273235796079616.L))+ real(5169616610118234979584.L))-real(5386361761267283360256.L))+ real(1466567355225799352064.L))+real(392310578701953226392.L))/ real(129310440448746185509055175.L); _C4x[106] = (_n*(_n*(_n*(_n*(_n*((real(12461790289419602509824.L)- real(13830379080573634625536.L)*_n)*_n-real(10458128276836454744064.L))+ real(6649800424078438268928.L))-real(6712477850991396667392.L))+ real(2774237839297767456768.L))-real(2330558536889172344832.L))+ real(1256685070887155093184.L))/real(129310440448746185509055175.L); _C4x[107] = (_n*(_n*(_n*(_n*((real(273869977857081110016.L)- real(367632485074535353344.L)*_n)*_n-real(259373075001239046144.L))+ real(136851540683345478144.L))-real(135864050075113980928.L))+ real(40734340002567411200.L))+real(10773207634081740848.L))/ real(4458980705129178810657075.L); _C4x[108] = (_n*(_n*(_n*((real(39250680271724544.L)- real(62311098358585344.L)*_n)*_n-real(39111918089431040.L))+ real(17175919641194496.L))-real(13397556821096448.L))+ real(7572676586130656.L))/real(1005860750085535486275.L); _C4x[109] = (_n*(_n*((real(29942233233848832.L)-real(55137815989807104.L)* _n)*_n-real(28441333182559232.L))+real(9190102048751104.L))+ real(2409387702333040.L))/real(1238878684468285019775.L); _C4x[110] = (_n*((real(416718490812416.L)-real(901706506321920.L)*_n)*_n- real(306118121340928.L))+real(179714891668416.L))/ real(30216553279714268775.L); _C4x[111] = ((real(132451998132480.L)-real(386245198689792.L)*_n)*_n+ real(34487905553192.L))/real(21784026783049821675.L); _C4x[112] = (real(1965206256.L)-real(3245452288.L)*_n)/ real(411259921521075.L); _C4x[113] = real(594728.L)/real(456448303575.L); _C4x[114] = (_n*(_n*(_n*(_n*(_n*(_n*(_n*(_n*(_n*(_n*(_n*(_n*(_n*(_n*(_n* (_n*(_n*(_n*(_n*(_n*(_n*(_n*(_n*(_n*(real(15423387840000.L)*_n+ real(24410637619200.L))+real(39434803868160.L))+real(65153154216960.L))+ real(110340019238400.L))+real(192053235456000.L))+ real(344628861401600.L))+real(639921380539392.L))+ real(1235017350364672.L))+real(2490791294853120.L))+ real(5284738109145600.L))+real(11895841861370880.L))+ real(28719961065309696.L))+real(75453625520695296.L))+ real(220073074435361280.L))+real(733576914784537600.L))+ real(2923827988926942720.L))+real(15073957631801126912.L))+ real(118707416350433874432.L))+real(2543730350366440166400.L))- real(48754831715356769856000.L))+real(273027057605997911193600.L))- real(778127114177094046901760.L))+real(1259824851524818933079040.L))- real(1049854042937349110899200.L))+real(341202563954638461042240.L))/ real(166256280576959381368785225.L); _C4x[115] = (_n*(_n*(_n*(_n*(_n*(_n*(_n*(_n*(_n*(_n*(_n*(_n*(_n*(_n*(_n* (_n*(_n*(_n*(_n*(_n*(_n*(_n*(_n*(real(211886621245440.L)*_n+ real(344887437219840.L))+real(574763649085440.L))+ real(983167619696640.L))+real(1731297510400000.L))+ real(3149502347491328.L))+real(5943830533705728.L))+ real(11697003233241088.L))+real(24156305750786048.L))+ real(52775086452480000.L))+real(123252527383179264.L))+ real(312010937963956224.L))+real(872814911428583424.L))+ real(2775016671927793664.L))+real(10479670211207680000.L))+ real(50780289975427934208.L))+real(372170816012745064448.L))+ real(7333480387871248242688.L))-real(127390015946351323533312.L))+ real(635932587591610041600000.L))-real(1591357707189244968099840.L))+ real(2270024964667011204495360.L))-real(1877386053252671351255040.L))+ real(839883234349879288719360.L))-real(157478106440602366634880.L))/ real(166256280576959381368785225.L); _C4x[116] = (_n*(_n*(_n*(_n*(_n*(_n*(_n*(_n*(_n*(_n*(_n*(_n*(_n*(_n*(_n* (_n*(_n*(_n*(_n*(_n*(_n*(_n*(real(1733813683845120.L)*_n+ real(2921279796817920.L))+real(5060946682767360.L))+ real(9045535065481216.L))+real(16746859934144512.L))+ real(32275230929915904.L))+real(65147793225795584.L))+ real(138800500252639232.L))+real(315292150644946944.L))+ real(773949004450492416.L))+real(2091794676130424832.L))+ real(6397923634241298432.L))+real(23121664591616546816.L))+ real(106523751762883825664.L))+real(736201024205424003072.L))+ real(13531819665936818520064.L))-real(215978365469340356642816.L))+ real(968064633071900171415552.L))-real(2087961704390117193652224.L))+ real(2337518609963400750243840.L))-real(1068705911200620395243520.L))- real(379637622956911381278720.L))+real(642263649796966514903040.L))- real(209970808587469822179840.L))/real(166256280576959381368785225.L); _C4x[117] = (_n*(_n*(_n*(_n*(_n*(_n*(_n*(_n*(_n*(_n*(_n*(_n*(_n*(_n*(_n* (_n*(_n*(_n*(_n*(_n*(_n*(real(11281902452101120.L)*_n+ real(19856137297704960.L))+real(36154474616020992.L))+ real(68431113868150784.L))+real(135438618199486464.L))+ real(282418738685630464.L))+real(626544546594914304.L))+ real(1498337078519113728.L))+real(3933696924152532992.L))+ real(11646021535115835392.L))+real(40564439417152315392.L))+ real(179149339145069217792.L))+real(1178575207609915322368.L))+ real(20423711902316282025984.L))-real(302998486839507258720256.L))+ real(1232898835414026959775744.L))-real(2300980896038842246311936.L))+ real(1930800622120958644467712.L))-real(33011967213644467937280.L))- real(1241679575025538326558720.L))+real(920491222785935814881280.L))- real(236623449925198189701120.L))+real(9263418025917786272640.L))/ real(166256280576959381368785225.L); _C4x[118] = (_n*(_n*(_n*(_n*(_n*(_n*(_n*(_n*(_n*(_n*(_n*(_n*(_n*(_n*(_n* (_n*(_n*(_n*(_n*(_n*(real(66291179380177920.L)*_n+ real(123502498083074048.L))+real(240276116509910016.L))+ real(491746535067949056.L))+real(1068834239585012736.L))+ real(2499083563092852736.L))+real(6399155309289157632.L))+ real(18423448180957145088.L))+real(62177905138903292928.L))+ real(264854349484989616128.L))+real(1670380106711262757888.L))+ real(27515284114781292705792.L))-real(383045286443291509330944.L))+ real(1429964615506826337017856.L))-real(2328915416924607663975424.L))+ real(1397452025538086337447936.L))+real(707050350167252187593728.L))- real(1407832273022066247946240.L))+real(563521063617845378196480.L))+ real(18427913204876877649920.L))-real(3900386537228541588480.L))- real(22264706483346258234240.L))/real(166256280576959381368785225.L); _C4x[119] = (_n*(_n*(_n*(_n*(_n*(_n*(_n*(_n*(_n*(_n*(_n*(_n*(_n*(_n*(_n* (_n*(_n*(_n*(_n*(real(382965711284199424.L)*_n+ real(770977653102635008.L))+real(1645917529390166016.L))+ real(3773218865391958016.L))+real(9453272621815267328.L))+ real(26562303451622639616.L))+real(87219647588387999744.L))+ real(360033595760694302720.L))+real(2188814336113346027520.L))+ real(34495902320421639071744.L))-real(454138552156337199714304.L))+ real(1569987468301227912050688.L))-real(2250966977888217204998144.L))+ real(891526076637315135686656.L))+real(1131859061537723437191168.L))- real(1245402071256865660020736.L))+real(232185728777560185528320.L))+ real(25165972266291981379584.L))+real(146473646308211550203904.L))- real(95078987762585607997440.L))+real(11213611294532057066880.L))/ real(166256280576959381368785225.L); _C4x[120] = (_n*(_n*(_n*(_n*(_n*(_n*(_n*(_n*(_n*(_n*(_n*(_n*(_n*(_n*(_n* (_n*(_n*(_n*(real(2355597954345252864.L)*_n+ real(5306628405977763840.L))+real(13041221262183229440.L))+ real(35865931381437005824.L))+real(114956423420358236160.L))+ real(461587696109817409536.L))+real(2716987595157332969472.L))+ real(41183405552573615235072.L))-real(516027721640714382116864.L))+ real(1665285424112185919016960.L))-real(2118667194899511313913856.L))+ real(463862759634883188572160.L))+real(1332726183954882242140160.L))- real(994736282435457627426816.L))+real(54441341804372914800640.L))- real(71905863118601554911232.L))+real(201133635951871102040064.L))- real(50241500786793155997696.L))-real(6308451268908771612672.L))- real(4098232231145931379200.L))/real(166256280576959381368785225.L); _C4x[121] = (_n*(_n*(_n*(_n*(_n*(_n*(_n*(_n*(_n*(_n*(_n*(_n*(_n*(_n*(_n* (_n*(_n*(real(17098913794908082176.L)*_n+real(46134404084977125376.L))+ real(144720746208363184128.L))+real(566985526960805689344.L))+ real(3242871776626640629760.L))+real(47479940168196059703296.L))- real(569261760283941813755904.L))+real(1726666467712281622517760.L))- real(1962921565983217717047296.L))+real(121242993676359938869248.L))+ real(1395172683285044179582976.L))-real(757402581415371604199424.L))- real(7804285406736951939072.L))-real(162279076537018804213760.L))+ real(179472887010351527534592.L))-real(15854994877038181853184.L))+ real(35598970218247026855936.L))-real(41852843364695828871168.L))+ real(7711742512194257771136.L))/real(166256280576959381368785225.L); _C4x[122] = (_n*(_n*(_n*(_n*(_n*(_n*(_n*(_n*(_n*(_n*(_n*(_n*(_n*(_n*(_n* (_n*(real(175932069921886992896.L)*_n+real(674224356017709817856.L))+ real(3758175988521507276288.L))+real(53341040498023015910400.L))- real(614706974856303979752960.L))+real(1762769154763009954314240.L))- real(1801403281533153772249600.L))-real(145529063466538972552192.L))+ real(1378722173338312469162496.L))-real(564551951692855483019264.L))- real(6976131587718032198144.L))-real(216185514334708864533504.L))+ real(133788882241089836597760.L))-real(14883806111752805799936.L))+ real(70236969349664605146624.L))-real(37558563751040750939136.L))- real(1190387835225122612736.L))-real(577285471180383782208.L))/ real(166256280576959381368785225.L); _C4x[123] = (_n*(_n*(_n*(_n*(_n*(_n*(_n*(_n*(_n*(_n*(_n*(_n*(_n*(_n*(_n* (real(4257384430093558022144.L)*_n+real(58755135352811110797312.L))- real(653307147328584716083200.L))+real(1780223143564599083151360.L))- real(1643767703459943581859840.L))-real(349748860251661508915200.L))+ real(1320730746669392228769792.L))-real(418639756822354187882496.L))+ real(21385306082083744088064.L))-real(237075054747228085907456.L))+ real(91878258712461689954304.L))-real(32268939335735401205760.L))+ real(83452509226462081499136.L))-real(24544611660129055617024.L))+ real(13444528204945543028736.L))-real(21054126943541691224064.L))+ real(5171959329612868977408.L))/real(166256280576959381368785225.L); _C4x[124] = (_n*(_n*(_n*(_n*(_n*(_n*(_n*(_n*(_n*(_n*(_n*(_n*(_n* ((real(1784021138885207529431040.L)-real(685970634918942781599744.L)* _n)*_n-real(1494945320904017106948096.L))- real(504258247076960377552896.L))+real(1243456478552992527831040.L))- real(312593215380001079599104.L))+real(57674736325606682161152.L))- real(235909959094226612944896.L))+real(62412061285611365371904.L))- real(53707790367761437974528.L))+real(81041501347448354549760.L))- real(17683931620331725012992.L))+real(29772079621946350424064.L))- real(24057332146516405395456.L))+real(771488169740602503168.L))+ real(240936001891833529344.L))/real(166256280576959381368785225.L); _C4x[125] = (_n*(_n*(_n*(_n*(_n*(_n*(_n*(_n*(_n*(_n*(_n*(_n*((- real(1357135428823881153355776.L)*_n-real(619993760047485238751232.L))* _n+real(1159678825439692254855168.L))-real(237545533065498653413376.L))+ real(92448223283311194480640.L))-real(222429070521524100132864.L))+ real(45294582361086188748800.L))-real(71880302971566403686400.L))+ real(71286556310080704208896.L))-real(18201204787742735216640.L))+ real(40601988695871336824832.L))-real(20409141195442082893824.L))+ real(7244415426799040372736.L))-real(11799790075845426966528.L))+ real(3560892380901363191040.L))/real(166256280576959381368785225.L); _C4x[126] = (_n*(_n*(_n*(_n*(_n*(_n*(_n*(_n*(_n*(_n*(_n*(_n* (real(1076448934906472409118720.L)*_n-real(185548840598543086510080.L))+ real(121883495804173713770496.L))-real(203364471661709466505216.L))+ real(37626881204170271250432.L))-real(84442615990512135520256.L))+ real(59862841522277907769344.L))-real(23261547619129516290048.L))+ real(45148586339150679504896.L))-real(16733921813601069342720.L))+ real(15336057170869389674496.L))-real(15494731005672544948224.L))+ real(1311033933917763901440.L))+real(406742200072498080000.L))/ real(166256280576959381368785225.L); _C4x[127] = (_n*(_n*(_n*(_n*(_n*(_n*(_n*(_n*(_n*(_n*(_n* (real(144999955520959822282752.L)*_n-real(182819205307386653790208.L))+ real(36265912363576915795968.L))-real(91538426742912616329216.L))+ real(49676263686196403011584.L))-real(30007360864412334657536.L))+ real(45107679970428656738304.L))-real(15208913191480066551808.L))+ real(22033053146603491901440.L))-real(15174606815537292103680.L))+ real(4813095418531485818880.L))-real(7191729762838616862720.L))+ real(2532530840105454531840.L))/real(166256280576959381368785225.L); _C4x[128] = (_n*(_n*(_n*(_n*(_n*(_n*(_n*(_n*(_n*(_n* (real(38669172193378346979328.L)*_n-real(94242807079707850416128.L))+ real(41806794187103815397376.L))-real(36574082083677166403584.L))+ real(42471896890389454524416.L))-real(15816943641348566114304.L))+ real(26305503336956956192768.L))-real(13786980635743277957120.L))+ real(9230326727696393195520.L))-real(10324616450702228398080.L))+ real(1341323234232394936320.L))+real(398746919787171701760.L))/ real(166256280576959381368785225.L); _C4x[129] = (_n*(_n*(_n*(_n*(_n*(_n*(_n*(_n*(_n* (real(36358165736989723385856.L)*_n-real(42024245141348829499392.L))+ real(38769283601188777721856.L))-real(17832530990951250980864.L))+ real(28296523278293164105728.L))-real(12755580054593512001536.L))+ real(13308567320059057192960.L))-real(11074656958634213683200.L))+ real(3544351093506972672000.L))-real(4679705767716804464640.L))+ real(1856487183525513665280.L))/real(166256280576959381368785225.L); _C4x[130] = (_n*(_n*(_n*(_n*(_n*(_n*(_n*(_n* (real(34961875576232693810688.L)*_n-real(20500376327075499659264.L))+ real(28588870662014648326656.L))-real(12510306510186250509312.L))+ real(16416302285680224857600.L))-real(10825554949776351848448.L))+ real(6203108912328070414848.L))-real(7141416231355722150912.L))+ real(1210039267821848335872.L))+real(347929149053787174720.L))/ real(166256280576959381368785225.L); _C4x[131] = (_n*(_n*(_n*(_n*(_n*(_n*(_n*(real(27807481879669030633472.L)* _n-real(12996334083051604891648.L))+real(18419615947032059203584.L))- real(10399912448169498937344.L))+real(8784819036492296675328.L))- real(8151761375079420966912.L))+real(2745351352566564876288.L))- real(3207045221167399299072.L))+real(1397543922868227894144.L))/ real(166256280576959381368785225.L); _C4x[132] = (_n*(_n*(_n*(_n*(_n*(_n*(real(19451667812668025489408.L)*_n- real(10175337301239971131392.L))+real(10949542328618408957952.L))- real(8402323186343432822784.L))+real(4488136881866794100736.L))- real(5113243688000272011264.L))+real(1043166858801298896896.L))+ real(292560752143799147008.L))/real(166256280576959381368785225.L); _C4x[133] = (_n*(_n*(_n*(_n*(_n*(real(33326152373781835776.L)*_n- real(22182225700218402816.L))+real(16468539213228613632.L))- real(16188661697554925568.L))+real(5800677560629563392.L))- real(6077685110278166528.L))+real(2855456530016678016.L))/ real(440998091716072629625425.L); _C4x[134] = (_n*(_n*(_n*(_n*(real(1743899320985515008.L)*_n- real(1476206937214611456.L))+real(769465150290668544.L))- real(851356787711113216.L))+real(199443555472139264.L))+ real(54887670894962048.L))/real(37504236538903537416825.L); _C4x[135] = (_n*(_n*(_n*(real(28150215791353856.L)*_n- real(28391775516788736.L))+real(10815834865864704.L))- real(10325524592973824.L))+real(5156944760482944.L))/ real(1013628014564960470725.L); _C4x[136] = (_n*(_n*(real(135967115813947392.L)*_n- real(145018936369369088.L))+real(37812934392010752.L))+ real(10255361879519744.L))/real(8430418365040280988225.L); _C4x[137] = (_n*(real(245769011032064.L)*_n-real(216898146789376.L))+ real(113908615347072.L))/real(28008034435349770725.L); _C4x[138] = (real(322327509504.L)*_n+real(86419033792.L))/ real(85130803754862525.L); _C4x[139] = real(4519424.L)/real(1369344910725.L); _C4x[140] = (_n*(_n*(_n*(_n*(_n*(_n*(_n*(_n*(_n*(_n*(_n*(_n*(_n*(_n*(_n* (_n*(_n*(_n*(_n*(_n*(_n*(_n*((-real(1509229117440.L)*_n- real(2673546024960.L))*_n-real(4867128668160.L))-real(9131587799040.L))- real(17715602432000.L))-real(35679223298048.L))-real(74950862671872.L))- real(165169493665792.L))-real(384543217451008.L))- real(954289234483200.L))-real(2553253862928384.L))- real(7477386312861696.L))-real(24471446114820096.L))- real(92221097858627584.L))-real(419186808448307200.L))- real(2489969642182944768.L))-real(22870832268939640832.L))- real(580347368824343386112.L))+real(13430896249934804078592.L))- real(93270112846769472768000.L))+real(343234015276111659786240.L))- real(772276534371251234519040.L))+real(1086907715041020255989760.L))- real(839883234349879288719360.L))+real(262463510734337277724800.L))/ real(203202120705172577228515275.L); _C4x[141] = (_n*(_n*(_n*(_n*(_n*(_n*(_n*(_n*(_n*(_n*(_n*(_n*(_n*(_n*(_n* (_n*(_n*(_n*(_n*(_n*(_n*((-real(30080573890560.L)*_n- real(55401635266560.L))*_n-real(105354433372160.L))- real(207639744577536.L))-real(426043293130752.L))- real(915086349484032.L))-real(2071448988229632.L))- real(4984142127562752.L))-real(12887852831924224.L))- real(36339334049120256.L))-real(114001127022698496.L))- real(409670134959210496.L))-real(1764663169835360256.L))- real(9859273734704185344.L))-real(84407455749151137792.L))- real(1974269262957499318272.L))+real(41544866816528857571328.L))- real(258005858825908088225792.L))+real(832715567495957852872704.L))- real(1611707549992176489431040.L))+real(1944992753231299405455360.L))- real(1435342245700103304560640.L))+real(592858753658738321448960.L))- real(104985404293734911089920.L))/real(203202120705172577228515275.L); _C4x[142] = (_n*(_n*(_n*(_n*(_n*(_n*(_n*(_n*(_n*(_n*(_n*(_n*(_n*(_n*(_n* (_n*(_n*(_n*(_n*(_n*((-real(356377645240320.L)*_n- real(689149620418560.L))*_n-real(1385236399480832.L))- real(2909595558692864.L))-real(6427965023023104.L))- real(15059867984533504.L))-real(37817587481411584.L))- real(103237671469836288.L))-real(312430825227128832.L))- real(1078470603387942912.L))-real(4439544762234150912.L))- real(23556259347618629632.L))-real(190037546553915977728.L))- real(4146855804991892772864.L))+real(80331819782914612412416.L))- real(450652320071960341981184.L))+real(1275660693756579111776256.L))- real(2051693762328003682301952.L))+real(1805709384713456992788480.L))- real(535540029763814536366080.L))-real(504449992148224712110080.L))+ real(548654372903481516779520.L))-real(163653718457880890816640.L))/ real(203202120705172577228515275.L); _C4x[143] = (_n*(_n*(_n*(_n*(_n*(_n*(_n*(_n*(_n*(_n*(_n*(_n*(_n*(_n*(_n* (_n*(_n*(_n*(_n*((-real(3388311204741120.L)*_n- real(6978286282539008.L))*_n-real(15090843503476736.L))- real(34542093221462016.L))-real(84556478627332096.L))- real(224440130522054656.L))-real(658439360351158272.L))- real(2195396955955560448.L))-real(8691703876623351808.L))- real(44117722079536939008.L))-real(338173853971207733248.L))- real(6949060480140715589632.L))+real(125192508635260946202624.L))- real(640893571248497898684416.L))+real(1601921181227197633675264.L))- real(2116066947487359353389056.L))+real(1168493691452395189747712.L))+ real(505279059817973774090240.L))-real(1174864257822579831521280.L))+ real(681945843262682981498880.L))-real(145614430723198885969920.L))+ real(1950193268614270794240.L))/real(203202120705172577228515275.L); _C4x[144] = (_n*(_n*(_n*(_n*(_n*(_n*(_n*(_n*(_n*(_n*(_n*(_n*(_n*(_n*(_n* (_n*(_n*(_n*((-real(29783676799279104.L)*_n-real(66783770293413888.L))* _n-real(159847560838557696.L))-real(413946427279620096.L))- real(1181749374200414208.L))-real(3822568817823041536.L))- real(14627176912157691904.L))-real(71427768325991913472.L))- real(523603662060395241472.L))-real(10207419868634363848704.L))+ real(172465203279918671990784.L))-real(813073050770341051987968.L))+ real(1808841542201733751455744.L))-real(1946718201588498158585856.L))+ real(458533006919580010442752.L))+real(1136573462746409662048256.L))- real(1136290520034443223654400.L))+real(285779625762501664561152.L))+ real(56843894229522049585152.L))+real(9157429261319184599040.L))- real(21289609849039122837120.L))/real(203202120705172577228515275.L); _C4x[145] = (_n*(_n*(_n*(_n*(_n*(_n*(_n*(_n*(_n*(_n*(_n*(_n*(_n*(_n*(_n* (_n*(_n*((-real(269451846663593984.L)*_n-real(682649077269381120.L))*_n- real(1902332600302673920.L))-real(5990518270476550144.L))- real(22243518881532764160.L))-real(104972018046645846016.L))- real(739735758189559226368.L))-real(13763541120759336173568.L))+ real(219624425025241531817984.L))-real(961132382054108943400960.L))+ real(1917663819062625474011136.L))-real(1663701415234432596377600.L))- real(140417044513105697792000.L))+real(1378636532210118154960896.L))- real(819197161807891380183040.L))+real(2561130794785129398272.L))- real(1394081185120366288896.L))+real(148508630588504702337024.L))- real(73168990344762670030848.L))+real(6656094416792185102080.L))/ real(203202120705172577228515275.L); _C4x[146] = (_n*(_n*(_n*(_n*(_n*(_n*(_n*(_n*(_n*(_n*(_n*(_n*(_n*(_n*(_n* (_n*((-real(2831187952337965056.L)*_n-real(8704297725028550656.L))*_n- real(31463779835313553408.L))-real(144028402139220916224.L))- real(979868397825624944640.L))-real(17487099875172234897408.L))+ real(265079166778857997934592.L))-real(1084267980991470975293440.L))+ real(1953524551249217124233216.L))-real(1343493318122186827696128.L))- real(583937400532039706034176.L))+real(1376371556895501754599424.L))- real(491595989847575029444608.L))-real(81097430953600769648640.L))- real(132514574679631879053312.L))+real(171839973101469484492800.L))- real(21090545893459680153600.L))-real(5177904446523687094272.L))- real(4984298303190241370496.L))/real(203202120705172577228515275.L); _C4x[147] = (_n*(_n*(_n*(_n*(_n*(_n*(_n*(_n*(_n*(_n*(_n*(_n*(_n*(_n*(_n* ((-real(42164554818087878656.L)*_n-real(187794586344044363776.L))*_n- real(1237820389692004302848.L))-real(21276921629106257920000.L))+ real(307912188999861753282560.L))-real(1184204656026050936176640.L))+ real(1938326853499561091072000.L))-real(1028442679209437130784768.L))- real(884922170676224156041216.L))+real(1251351047786572668207104.L))- real(245742882447295612911616.L))-real(46975561981181028335616.L))- real(217221353375111366901760.L))+real(119366160036174220230656.L))+ real(3304399308580991860736.L))+real(40500018545262944976896.L))- real(35786615001180827090944.L))+real(5298496107578096109568.L))/ real(203202120705172577228515275.L); _C4x[148] = (_n*(_n*(_n*(_n*(_n*(_n*(_n*(_n*(_n*(_n*(_n*(_n*(_n*(_n*((- real(1508191457506470068224.L)*_n-real(25057490773531995082752.L))*_n+ real(347661023376368060620800.L))-real(1263676145041214994984960.L))+ real(1889104624799544520458240.L))-real(739197454803586327859200.L))- real(1072931463723461916024832.L))+real(1079883134776675908489216.L))- real(90378562900263442939904.L))+real(28821057507252135817216.L))- real(240406627876557011165184.L))+real(59353392085704620789760.L))- real(14369290558376752889856.L))+real(71816811073014796529664.L))- real(25207245399451801706496.L))-real(2330460677832194912256.L))- real(1262801308417546560768.L))/real(203202120705172577228515275.L); _C4x[149] = (_n*(_n*(_n*(_n*(_n*(_n*(_n*(_n*(_n*(_n*(_n*(_n*(_n*(_n* (real(384157060738624636698624.L)*_n-real(1325640286490171952168960.L))+ real(1818375681717492525907968.L))-real(483886805722631273644032.L))- real(1177733879671663761244160.L))+real(903391730055772263645184.L))- real(6722064289967832809472.L))+real(104499992701792283918336.L))- real(222632457050411308171264.L))+real(20808095332678201540608.L))- real(47175661879102651023360.L))+real(74747346957226768269312.L))- real(10613075846527693701120.L))+real(14633979157653783674880.L))- real(19097413224122007011328.L))+real(3833716971278880569856.L))/ real(203202120705172577228515275.L); _C4x[150] = (_n*(_n*(_n*(_n*(_n*(_n*(_n*(_n*(_n*(_n*(_n*(_n*(_n* (real(1735035615479764409491456.L)*_n-real(263908522000477623406592.L))- real(1224009998714426275643392.L))+real(741587925728620980883456.L))+ real(27786928928082644623360.L))+real(163385167394187748470784.L))- real(186124748954937563709440.L))+real(6335275210711645327360.L))- real(75448932541388953214976.L))+real(61026427708877107671040.L))- real(7950184245844838531072.L))+real(32166351408222650945536.L))- real(18840415003374022467584.L))-real(433087043016453066752.L))- real(198249161220521286400.L))/real(203202120705172577228515275.L); _C4x[151] = (_n*(_n*(_n*(_n*(_n*(_n*(_n*(_n*(_n*(_n*(_n* ((real(602017899186674245435392.L)-real(1230565698081099411652608.L)* _n)*_n+real(31742011530137720356864.L))+ real(202135102848916822491136.L))-real(145782200355059610058752.L))+ real(9035714370561142685696.L))-real(92139198992304170696704.L))+ real(43388306747663045296128.L))-real(15380367166228461551616.L))+ real(40940599489643849318400.L))-real(12832236640446745116672.L))+ real(7000769552131186556928.L))-real(11083009183419288944640.L))+ real(2772354835694146913280.L))/real(203202120705172577228515275.L); _C4x[152] = (_n*(_n*(_n*(_n*(_n*(_n*(_n*(_n*(_n*(_n*(_n* (real(18443598179278392803328.L)*_n+real(223119117407864259923968.L))- real(109451968063979174371328.L))+real(21074572530029275508736.L))- real(97577678435877587943424.L))+real(28954805728690295607296.L))- real(26858596718327496105984.L))+real(41168866374346514771968.L))- real(9204440533975142973440.L))+real(16333420244126310420480.L))- real(13150311523176015175680.L))+real(386220598307148165120.L))+ real(127630062479153122560.L))/real(203202120705172577228515275.L); _C4x[153] = (_n*(_n*(_n*(_n*(_n*(_n*(_n*(_n*(_n* ((real(36542158751968925810688.L)-real(80260892944829572005888.L)*_n)* _n-real(94824240932929013661696.L))+real(20078509324456305229824.L))- real(37760761316771589144576.L))+real(36385580269011635830784.L))- real(9783612234194463408128.L))+real(23102624962723027025920.L))- real(11175987276193467678720.L))+real(4206925306002343034880.L))- real(6898184321561910558720.L))+real(2041859227186034403840.L))/ real(203202120705172577228515275.L); _C4x[154] = (_n*(_n*(_n*(_n*(_n*(_n*(_n*(_n* ((real(16488890321654728691712.L)-real(87208333471391658008576.L)*_n)* _n-real(45809077918610146557952.L))+real(29949622426063107780608.L))- real(13431745842237051445248.L))+real(26106057096864886214656.L))- real(9028423369382465945600.L))+real(9403007802980489736192.L))- real(9192948985841019936768.L))+real(677059432404873154560.L))+ real(217097408346699412224.L))/real(203202120705172577228515275.L); _C4x[155] = (_n*(_n*(_n*(_n*(_n*(_n*(_n*((real(24006981966100691419136.L)- real(50445848972662873325568.L)*_n)*_n-real(18393271224818951716864.L))+ real(26014317062101581299712.L))-real(8333093675665032806400.L))+ real(13920631682915687989248.L))-real(8912605815657295183872.L))+ real(2933630693708410257408.L))-real(4545849550822027886592.L))+ real(1536715582489742764032.L))/real(203202120705172577228515275.L); _C4x[156] = (_n*(_n*(_n*(_n*(_n*(_n*((real(24057954746398648850432.L)- real(23282906528843549360128.L)*_n)*_n-real(9228903276836773351424.L))+ real(16819498333922089601024.L))-real(7935792550154883555328.L))+ real(6025113920482285697024.L))-real(6555338253120414478336.L))+ real(737733980594879916032.L))+real(226150779384719136640.L))/ real(203202120705172577228515275.L); _C4x[157] = (_n*(_n*(_n*(_n*(_n*((real(1387947585015300440064.L)- real(863101789858062770176.L)*_n)*_n-real(562629390413564534784.L))+ real(691828035753203171328.L))-real(533526894075147067392.L))+ real(171269495608139563008.L))-real(241448143622761439232.L))+ real(90837269845846427904.L))/real(15630932361936352094501175.L); _C4x[158] = (_n*(_n*(_n*(_n*((real(866186923153107769344.L)- real(569180110351342301184.L)*_n)*_n-real(510674583004295897088.L))+ real(322751588064965486592.L))-real(368356854557834498048.L))+ real(54205790186264983552.L))+real(16040043923515570816.L))/ real(15630932361936352094501175.L); _C4x[159] = (_n*(_n*(_n*((real(1396004848943169536.L)- real(1421006686098669568.L)*_n)*_n-real(1215708449370816512.L))+ real(399424955491647488.L))-real(508067845210292224.L))+ real(208618699335208448.L))/real(45838511325326545731675.L); _C4x[160] = (_n*(_n*((real(587099505297537024.L)- real(1029146611646324736.L)*_n)*_n-real(677087690482118656.L))+ real(120598133734467584.L))+real(34730953897228160.L))/ real(38405239218516835613025.L); _C4x[161] = (_n*((real(6669452902088704.L)-real(19450166986039296.L)*_n)* _n-real(7692029488013312.L))+real(3395611120122624.L))/ real(936713151671142332025.L); _C4x[162] = ((real(665065126582272.L)-real(3230970624380928.L)*_n)*_n+ real(187530626331776.L))/real(239624294613548038425.L); _C4x[163] = (real(304969986048.L)-real(650254352384.L)*_n)/ real(104048760144831975.L); _C4x[164] = real(3108352.L)/real(4619256832179.L); _C4x[165] = (_n*(_n*(_n*(_n*(_n*(_n*(_n*(_n*(_n*(_n*(_n*(_n*(_n*(_n*(_n* (_n*(_n*(_n*(_n*(_n*(_n*(_n*(real(257316433920.L)*_n+ real(517719121920.L))+real(1079888875520.L))+real(2344901558272.L))+ real(5327004626944.L))+real(12736747905024.L))+real(32288773197824.L))+ real(87593073311744.L))+real(257304652853248.L))+ real(831291955372032.L))+real(3017481838006272.L))+ real(12688897985462272.L))+real(64804014711468032.L))+ real(435954280786239488.L))+real(4577519948255514624.L))+ real(134273918482161762304.L))-real(3642180038828637802496.L))+ real(30178063178865856077824.L))-real(135801284304896352350208.L))+ real(388003669442561006714880.L))-real(743673699764908596203520.L))+ real(946493799700792758804480.L))-real(691668545935194708357120.L))+ real(209970808587469822179840.L))/real(240147960833385773088245325.L); _C4x[166] = (_n*(_n*(_n*(_n*(_n*(_n*(_n*(_n*(_n*(_n*(_n*(_n*(_n*(_n*(_n* (_n*(_n*(_n*(_n*(_n*(_n*(real(2448085319680.L)*_n+ real(5198109163520.L))+real(11525969215488.L))+real(26842568769536.L))+ real(66124844138496.L))+real(173845436317696.L))+ real(493381392531456.L))+real(1534563265134592.L))+ real(5340421046632448.L))+real(21426460183052288.L))+ real(103810217665036288.L))+real(658009995531829248.L))+ real(6456836374888087552.L))+real(175253620876068274176.L))- real(4345592270877235216384.L))+real(32427151313442065596416.L))- real(129037235661357453574144.L))+real(319025239319439049965568.L))- real(517338225923414675619840.L))+real(552611286781829312593920.L))- real(374437107573939992494080.L))+real(145614430723198885969920.L))- real(24702448069114096727040.L))/real(80049320277795257696081775.L); _C4x[167] = (_n*(_n*(_n*(_n*(_n*(_n*(_n*(_n*(_n*(_n*(_n*(_n*(_n*(_n*(_n* (_n*(_n*(_n*(_n*(_n*(real(126342544613376.L)*_n+ real(287468136923136.L))+real(690492253741056.L))+ real(1766046625873920.L))+real(4863401337839616.L))+ real(14633956119281664.L))+real(49097734894362624.L))+ real(189134731009409024.L))+real(875564292614316032.L))+ real(5271908606120067072.L))+real(48789763316146642944.L))+ real(1237782058785010335744.L))-real(28355986371045703458816.L))+ real(192444170076031269666816.L))-real(680906092303007800320000.L))+ real(1443741944502735160098816.L))-real(1875053748152881983791104.L))+ real(1343511695807170839412736.L))-real(193459172246535662788608.L))- real(539949162371116365987840.L))+real(468046384467424990617600.L))- real(131313013420027566812160.L))/real(240147960833385773088245325.L); _C4x[168] = (_n*(_n*(_n*(_n*(_n*(_n*(_n*(_n*(_n*(_n*(_n*(_n*(_n*(_n*(_n* (_n*(_n*(_n*(_n*(real(1794028353814528.L)*_n+real(4477787992637440.L))+ real(12006817381318656.L))+real(35088430518812672.L))+ real(113994359758389248.L))+real(423728832601341952.L))+ real(1884855122013618176.L))+real(10849655450029899776.L))+ real(95384760613357551616.L))+real(2280138071014243844096.L))- real(48685051081419936268288.L))+real(303214926810544425320448.L))- real(960908651560086026190848.L))+real(1745683879375284629487616.L))- real(1743703775031953529733120.L))+real(548066899358913552171008.L))+ real(778581347098662674825216.L))-real(1038113314186880008175616.L))+ real(506123201445354637197312.L))-real(91348183248714829086720.L))- real(1300128845742847196160.L))/real(240147960833385773088245325.L); _C4x[169] = (_n*(_n*(_n*(_n*(_n*(_n*(_n*(_n*(_n*(_n*(_n*(_n*(_n*(_n*(_n* (_n*(_n*(_n*(real(24778942658555904.L)*_n+real(70552539374690304.L))+ real(222740581213900800.L))+real(802122872534925312.L))+ real(3444064036667289600.L))+real(19049960218061692928.L))+ real(160022902663762890752.L))+real(3628119050363403681792.L))- real(72733278067356486193152.L))+real(418988509060386250137600.L))- real(1197935997204518426308608.L))+real(1865910080228015497052160.L))- real(1356505990642522145427456.L))-real(233007536131786922827776.L))+ real(1241420475659236427878400.L))-real(844924131779929731088384.L))+ real(113626972836874418761728.L))+real(62677515833029085700096.L))+ real(18314858522638369198080.L))-real(19643251038940843507200.L))/ real(240147960833385773088245325.L); _C4x[170] = (_n*(_n*(_n*(_n*(_n*(_n*(_n*(_n*(_n*(_n*(_n*(_n*(_n*(_n*(_n* (_n*(_n*(real(386613842950619136.L)*_n+real(1353278838292938752.L))+ real(5629515198463213568.L))+real(30047212317907550208.L))+ real(242321110939347058688.L))+real(5239257310343406092288.L))- real(99224653351858212175872.L))+real(532320801506965520580608.L))- real(1382287083951432119222272.L))+real(1846228289058830433189888.L))- real(880787032480011345461248.L))-real(801889054499842357264384.L))+ real(1273894517435658985144320.L))-real(448728411912169822289920.L))- real(94514888074456720998400.L))-real(39503896548611063611392.L))+ real(141233626760411992948736.L))-real(56195714051354601127936.L))+ real(3934302941900094124032.L))/real(240147960833385773088245325.L); _C4x[171] = (_n*(_n*(_n*(_n*(_n*(_n*(_n*(_n*(_n*(_n*(_n*(_n*(_n*(_n*(_n* (_n*(real(8489275551543689216.L)*_n+real(43876825675639291904.L))+ real(341077744362532929536.L))+real(7064728499067957608448.L))- real(127064310092653389840384.L))+real(638621086696665877446656.L))- real(1515120656017505324204032.L))+real(1732965433613042390859776.L))- real(416659196788742022004736.L))-real(1138189677523088913465344.L))+ real(1080767835234722522890240.L))-real(128480464944752491167744.L))- real(82732793120026949222400.L))-real(175466098285534552129536.L))+ real(135173325698368450232320.L))-real(2948124056344606605312.L))- real(3006474860080610967552.L))-real(5321107044025797799936.L))/ real(240147960833385773088245325.L); _C4x[172] = (_n*(_n*(_n*(_n*(_n*(_n*(_n*(_n*(_n*(_n*(_n*(_n*(_n*(_n*(_n* (real(454620391029060141056.L)*_n+real(9056118414265227608064.L))- real(155383610610520554078208.L))+real(735429741143205140824064.L))- real(1602560535867794634571776.L))+real(1564476643391685127503872.L))- real(11762333435376197042176.L))-real(1288301898182646401531904.L))+ real(815252396397919916785664.L))+real(49782085725578505420800.L))+ real(24113307230430807588864.L))-real(229062705483133247488000.L))+ real(63342427682715150319616.L))+real(7875346407680037027840.L))+ real(43770882909168072261632.L))-real(30238057194890977804288.L))+ real(3678565453801950867456.L))/real(240147960833385773088245325.L); _C4x[173] = (_n*(_n*(_n*(_n*(_n*(_n*(_n*(_n*(_n*(_n*(_n*(_n*(_n* ((real(821731396929669016010752.L)-real(183529127146933632196608.L)*_n)* _n-real(1652332061873336752283648.L))+ real(1368738156318510239219712.L))+real(318138599568120510226432.L))- real(1310184091339834383024128.L))+real(560408743594952306614272.L))+ real(110676205326983189168128.L))+real(134341126806557678608384.L))- real(208091062685216436633600.L))+real(5645989597895597547520.L))- real(26253275550930074501120.L))+real(68355826684718847762432.L))- real(15371949150190859534336.L))-real(2452376969201300578304.L))- real(1674403979534002762752.L))/real(240147960833385773088245325.L); _C4x[174] = (_n*(_n*(_n*(_n*(_n*(_n*(_n*(_n*(_n*(_n*(_n*(_n* ((real(1164631760887444407287808.L)-real(1672063719072874003365888.L)* _n)*_n+real(573973535120174555987968.L))- real(1252993307912317168222208.L))+real(350694770109091176448000.L))+ real(98240468623336356282368.L))+real(210067308553286879805440.L))- real(152408252200864889012224.L))-real(13945195548260895227904.L))- real(66685451163929648332800.L))+real(59814932081329384587264.L))- real(2037325835146397974528.L))+real(16311186817173913534464.L))- real(17076664527843759390720.L))+real(2868285736807542016000.L))/ real(240147960833385773088245325.L); _C4x[175] = (_n*(_n*(_n*(_n*(_n*(_n*(_n*(_n*(_n*(_n*(_n*(_n* (real(764135057651395492102144.L)*_n-real(1152635155842632424554496.L))+ real(193854344540972493389824.L))+real(49470026438969445941248.L))+ real(245966578294613110013952.L))-real(93102146467331687186432.L))- real(3436057585971318603776.L))-real(91209199540789553233920.L))+ real(37227347117157306253312.L))-real(5688296637058436366336.L))+ real(33399261936008523104256.L))-real(14057707417544877965312.L))- real(1015737220237693829120.L))-real(500634805329813288960.L))/ real(240147960833385773088245325.L); _C4x[176] = (_n*(_n*(_n*(_n*(_n*(_n*(_n*(_n*(_n*(_n*(_n* (real(85305679257713609146368.L)*_n-real(11089919412196939628544.L))+ real(250145458939405349093376.L))-real(45859244715211880300544.L))+ real(21781784366930411126784.L))-real(96387723577350541639680.L))+ real(17190616935572830224384.L))-real(20081999288689171398656.L))+ real(38292133581529026002944.L))-real(6870193956450861023232.L))+ real(7429188838123466588160.L))-real(10271644792234587095040.L))+ real(2174257397994122004480.L))/real(240147960833385773088245325.L); _C4x[177] = (_n*(_n*(_n*(_n*(_n*(_n*(_n*(_n*(_n*(_n* (real(233644519885353150324736.L)*_n-real(15261470871563375230976.L))+ real(49510531225464097431552.L))-real(87596468125517391659008.L))+ real(6560735495028469833728.L))-real(35679820077785115115520.L))+ real(33283281055730385412096.L))-real(4796419217902489468928.L))+ real(17436845615871411953664.L))-real(10788199764266725097472.L))- real(181727943171350962176.L))-real(79749383957434340352.L))/ real(240147960833385773088245325.L); _C4x[178] = (_n*(_n*(_n*(_n*(_n*(_n*(_n*(_n*(_n* (real(72827313088752745316352.L)*_n-real(71814852403093401698304.L))+ real(5368140613167144763392.L))-real(46754774377127572733952.L))+ real(24324414120113464541184.L))-real(8630453428059493302272.L))+ real(23269141919886798487552.L))-real(7572481339215041593344.L))+ real(4107321939726699724800.L))-real(6543695339402962599936.L))+ real(1655621357111277760512.L))/real(240147960833385773088245325.L); _C4x[179] = (_n*(_n*(_n*(_n*(_n*(_n*(_n*(_n* (real(10764550869353176596480.L)*_n-real(51670552302968450056192.L))+ real(16060470891565481099264.L))-real(15580877285327828877312.L))+ real(23999123493445142282240.L))-real(5417108632232330395648.L))+ real(9944129571696691937280.L))-real(7975828621818156875776.L))+ real(218993539526363807744.L))+real(75076309196665835520.L))/ real(240147960833385773088245325.L); _C4x[180] = (_n*(_n*(_n*(_n*(_n*(_n*(_n*(real(826878773833583034368.L)*_n- real(1747178392781595934720.L))+real(1635903775474357501952.L))- real(454534917086792318976.L))+real(1111445221583379234816.L))- real(521822207931571306496.L))+real(204781338760991342592.L))- real(336821611116005621760.L))+real(98284255801221754880.L))/ real(18472920064106597929865025.L); _C4x[181] = (_n*(_n*(_n*(_n*(_n*(_n*(real(1321660083498000748544.L)*_n- real(660353884216987901952.L))+real(1270351981574471856128.L))- real(416290641584376266752.L))+real(476368073420692180992.L))- real(453631696169838714880.L))+real(29813236108711227392.L))+ real(9794743193350123008.L))/real(18472920064106597929865025.L); _C4x[182] = (_n*(_n*(_n*(_n*(_n*(real(1260483950616081825792.L)*_n- real(390902614476836814848.L))+real(720904661188272259072.L))- real(435641120796265562112.L))+real(148340810697106948096.L))- real(234920185317888671744.L))+real(77026888103827504128.L))/ real(18472920064106597929865025.L); _C4x[183] = (_n*(_n*(_n*(_n*(real(79781508316395626496.L)*_n- real(34630877306189807616.L))+real(29159418113056612352.L))- real(30875112149841756160.L))+real(3081556390752739328.L))+ real(967480605650617344.L))/real(1679356369464236175442275.L); _C4x[184] = (_n*(_n*(_n*(real(1205956028389326848.L)*_n- real(871339038836637696.L))+real(283151198814568448.L))- real(416899622605373440.L))+real(150586549927756800.L))/ real(45388009985519896633575.L); _C4x[185] = (_n*(_n*(real(11679472316977152.L)*_n- real(13107134511882240.L))+real(1711437269741568.L))+ real(518364816254464.L))/real(936713151671142332025.L); _C4x[186] = (_n*(real(110139925594112.L)*_n-real(148869233901568.L))+ real(58325556617216.L))/real(21784026783049821675.L); _C4x[187] = (real(16241983488.L)*_n+real(4782743552.L))/ real(9458978194984725.L); _C4x[188] = real(139264.L)/real(63626127165.L); _C4x[189] = (_n*(_n*(_n*(_n*(_n*(_n*(_n*(_n*(_n*(_n*(_n*(_n*(_n*(_n*(_n* (_n*(_n*(_n*(_n*(_n*((-real(75441766400.L)*_n-real(175710732288.L))*_n- real(429272596480.L))-real(1106910052352.L))-real(3035570503680.L))- real(8938068705280.L))-real(28601819856896.L))-real(101068930744320.L))- real(403050645028864.L))-real(1871306566205440.L))- real(10610925144637440.L))-real(79758787337191424.L))- real(942603850348625920.L))-real(31388708216609243136.L))+ real(976537588961176453120.L))-real(9399174293751323361280.L))+ real(49949897675364175577088.L))-real(172446075307804891873280.L))+ real(413870580738731740495872.L))-real(705461217168292739481600.L))+ real(832082461275422205542400.L))-real(582457722892795543879680.L))+ real(172917136483798677089280.L))/real(277093800961598968947975375.L); _C4x[190] = (_n*(_n*(_n*(_n*(_n*(_n*(_n*(_n*(_n*(_n*(_n*(_n*(_n*(_n*(_n* (_n*(_n*(_n*(_n*((-real(3111445069824.L)*_n-real(7812137615360.L))*_n- real(20813588463616.L))-real(59386797490176.L))- real(183618286911488.L))-real(624839756873728.L))- real(2390402094858240.L))-real(10599374409695232.L))- real(57101583220211712.L))-real(405287987384942592.L))- real(4489836126200922112.L))-real(138925305943689789440.L))+ real(3973640791529667428352.L))-real(34708936019077243076608.L))+ real(164741891257750467641344.L))-real(498117873592110949072896.L))+ real(1022783619066980738007040.L))-real(1454817798960390360530944.L))+ real(1415263734134544203513856.L))-real(897201958244803073802240.L))+ real(332832984510168882216960.L))-real(54605411521199582238720.L))/ real(277093800961598968947975375.L); _C4x[191] = (_n*(_n*(_n*(_n*(_n*(_n*(_n*(_n*(_n*(_n*(_n*(_n*(_n*(_n*(_n* (_n*(_n*(_n*((-real(79854773207040.L)*_n-real(221557201502208.L))*_n- real(664458787160064.L))-real(2186921930981376.L))- real(8065158447366144.L))-real(34342247604879360.L))- real(176863478347595776.L))-real(1193592132558192640.L))- real(12491033020846571520.L))-real(362197501565686972416.L))+ real(9610829533367644323840.L))-real(76860505272133713199104.L))+ real(328055549161452697288704.L))-real(868808054727527240761344.L))+ real(1496676385184361931210752.L))-real(1640879598365711084093440.L))+ real(969024688235553160429568.L))+real(23877148888772985028608.L))- real(533979875148923119730688.L))+real(401570231311182020935680.L))- real(107910694196656317281280.L))/real(277093800961598968947975375.L); _C4x[192] = (_n*(_n*(_n*(_n*(_n*(_n*(_n*(_n*(_n*(_n*(_n*(_n*(_n*(_n*(_n* (_n*(_n*((-real(1787250441453568.L)*_n-real(5709575309230080.L))*_n- real(20379043833577472.L))-real(83702291789512704.L))- real(414148105847439360.L))-real(2672437640021671936.L))- real(26585576168731181056.L))-real(727455323626338779136.L))+ real(18042943657392995303424.L))-real(133145498496082022236160.L))+ real(514617076983561465102336.L))-real(1197178585841772204654592.L))+ real(1707915227692879487959040.L))-real(1318158338653766295748608.L))+ real(89691221632280360386560.L))+real(890413412324178455953408.L))- real(889018358625662489591808.L))+real(378175449066626671968256.L))- real(57883997306116327342080.L))-real(2713312373724202844160.L))/ real(277093800961598968947975375.L); _C4x[193] = (_n*(_n*(_n*(_n*(_n*(_n*(_n*(_n*(_n*(_n*(_n*(_n*(_n*(_n*(_n* (_n*((-real(42928828177711104.L)*_n-real(170700156826812416.L))*_n- real(814790242912436224.L))-real(5050491221818736640.L))- real(48007950867778502656.L))-real(1246794276917594030080.L))+ real(29090434785150149591040.L))-real(199434240489355020599296.L))+ real(702576871985851397570560.L))-real(1440467539294701266141184.L))+ real(1677059961808671593201664.L))-real(751516848547125450768384.L))- real(670205781189179909603328.L))+real(1172934321756483825172480.L))- real(592914991760959746342912.L))+real(12500754256932686266368.L))+ real(55422264087350460547072.L))+real(24118332210881803059200.L))- real(17862639793684335390720.L))/real(277093800961598968947975375.L); _C4x[194] = (_n*(_n*(_n*(_n*(_n*(_n*(_n*(_n*(_n*(_n*(_n*(_n*(_n*(_n*(_n* ((-real(1422100676438130688.L)*_n-real(8500178320434921472.L))*_n- real(77540766521811271680.L))-real(1920646798052109058048.L))+ real(42385642600050273026048.L))-real(271563716140306721144832.L))+ real(877093742012769036664832.L))-real(1589447120644752308961280.L))+ real(1478221673842423284891648.L))-real(155653080079782230622208.L))- real(1118563574177351578157056.L))+real(1020823612125358898282496.L))- real(180659163925863690403840.L))-real(116635074141771809161216.L))- real(72255196637290036199424.L))+real(129246359576356145070080.L))- real(43246664653994957209600.L))+real(2261093644770169036800.L))/ real(277093800961598968947975375.L); _C4x[195] = (_n*(_n*(_n*(_n*(_n*(_n*(_n*(_n*(_n*(_n*(_n*(_n*(_n*(_n*((- real(115550504205888258048.L)*_n-real(2741123455591345029120.L))*_n+ real(57484180955459937107968.L))-real(345982057108095043371008.L))+ real(1029849926050158159593472.L))-real(1653101587809800741978112.L))+ real(1186567888404923198996480.L))+real(353863544783374359724032.L))- real(1276990156691436608684032.L))+real(696718673211264264830976.L))+ real(76278710899184528523264.L))-real(28970856832476529295360.L))- real(193729859975510248914944.L))+real(99474840531795795247104.L))+ real(7501096425097388359680.L))-real(735085987294951505920.L))- real(5356452875714159063040.L))/real(277093800961598968947975375.L); _C4x[196] = (_n*(_n*(_n*(_n*(_n*(_n*(_n*(_n*(_n*(_n*(_n*(_n*(_n*(_n* (real(73936074989479620771840.L)*_n-real(419941766920906498637824.L))+ real(1157359604143959839866880.L))-real(1647695718262972235120640.L))+ real(859747249493093165039616.L))+real(735946719885051968880640.L))- real(1235985831377864921972736.L))+real(373610686613064993734656.L))+ real(152487453654084159012864.L))+real(113830676970719976357888.L))- real(206464254778412687687680.L))+real(20221955931885327613952.L))+ real(4552689587597677166592.L))+real(45096720481873054138368.L))- real(25389977312990587781120.L))+real(2568441412724467875840.L))/ real(277093800961598968947975375.L); _C4x[197] = (_n*(_n*(_n*(_n*(_n*(_n*(_n*(_n*(_n*(_n*(_n*(_n*(_n* (real(1259284817770600319942656.L)*_n- real(1590616063503911985741824.L))+real(535775086987426103033856.L))+ real(991225880849209726468096.L))-real(1084532801672530279792640.L))+ real(126438942000949104082944.L))+real(111503584749498775109632.L))+ real(216235718602758370754560.L))-real(145796975301985252933632.L))- real(22856377227704232181760.L))-real(40959485398228434157568.L))+ real(61424721901577417392128.L))-real(7985188759441047289856.L))- real(2073800978755465379840.L))-real(1908347945460918528000.L))/ real(277093800961598968947975375.L); _C4x[198] = (_n*(_n*(_n*(_n*(_n*(_n*(_n*(_n*(_n*(_n*(_n*(_n* (real(236733498233124738826240.L)*_n+real(1138759225202582193438720.L))- real(888034239400996557553664.L))-real(30076654325270488023040.L))+ real(20352360506274004598784.L))+real(255123334897451365564416.L))- real(68856778755797536997376.L))-real(16722330759145001582592.L))- real(80527607758667720949760.L))+real(42761672595454266703872.L))+ real(2216524642203430551552.L))+real(17800653167500568035328.L))- real(15123716238901261107200.L))+real(2161746371167920230400.L))/ real(277093800961598968947975375.L); _C4x[199] = (_n*(_n*(_n*(_n*(_n*(_n*(_n*(_n*(_n*(_n*((- real(687450483950084219731968.L)*_n-real(108699568870896450797568.L))* _n-real(76154908051131797340160.L))+real(243141411935960445616128.L))- real(9874406845516828639232.L))+real(17352698496524266110976.L))- real(93179112890473252651008.L))+real(15827310667347994214400.L))- real(8170504585938830098432.L))+real(33123523730030976958464.L))- real(9943416602613636136960.L))-real(1213914241674355802112.L))- real(705473045033914902528.L))/real(277093800961598968947975375.L); _C4x[200] = (_n*(_n*(_n*(_n*(_n*(_n*(_n*(_n*(_n* ((real(201964962830957590609920.L)-real(155273019420878287405056.L)*_n)* _n+real(20745527087238522863616.L))+real(56279576782152180695040.L))- real(82287391605795603873792.L))-real(579614829333184512000.L))- real(27647675396249369968640.L))+real(33259290835251846184960.L))- real(2659419031482613628928.L))+real(8109191962481450287104.L))- real(9422781656861865148416.L))+real(1715986744463414771712.L))/ real(277093800961598968947975375.L); _C4x[201] = (_n*(_n*(_n*(_n*(_n*(_n*(_n*(_n*(_n* (real(26171083601417378201600.L)*_n+real(86270411167545844039680.L))- real(59603899820817350918144.L))-real(2133488787948678414336.L))- real(43641822730431468404736.L))+real(23500662442215146782720.L))- real(3148888808728506138624.L))+real(18160457847254936715264.L))- real(8563705923482740588544.L))-real(500786955277502251008.L))- real(232488718992255086592.L))/real(277093800961598968947975375.L); _C4x[202] = (_n*(_n*(_n*(_n*(_n*(_n*(_n*((real(7212441055062359277568.L)- real(35610732121616972513280.L)*_n)*_n-real(50613726020626482724864.L))+ real(12363663748667145191424.L))-real(10472920633762596782080.L))+ real(22247510426871750721536.L))-real(4598743255868765110272.L))+ real(4290853001439697960960.L))-real(6148819626660560109568.L))+ real(1349360346075493441536.L))/real(277093800961598968947975375.L); _C4x[203] = (_n*(_n*(_n*(_n*(_n*(_n*((real(5203700604330893901824.L)- real(48900911314275175235584.L)*_n)*_n-real(19853106229379914530816.L))+ real(20239188691598173798400.L))-real(3124362673253052841984.L))+ real(10521302770356731510784.L))-real(6752195489944448794624.L))- real(83165149124833312768.L))-real(35211092731689971712.L))/ real(277093800961598968947975375.L); _C4x[204] = (_n*(_n*(_n*(_n*(_n*((real(1162731928529984815104.L)- real(2103889244558006943744.L)*_n)*_n-real(411962859164558950400.L))+ real(1118176952494940225536.L))-real(372992867284225622016.L))+ real(201166926510657896448.L))-real(321812014233212157952.L))+ real(82058264093589848064.L))/real(21314907766276843765228875.L); _C4x[205] = (_n*(_n*(_n*(_n*((real(1175732900060890726400.L)- real(762577061907395641344.L)*_n)*_n-real(266356124826903248896.L))+ real(500719515075378610176.L))-real(400230461401841664000.L))+ real(10420824586550050816.L))+real(3664884159967540224.L))/ real(21314907766276843765228875.L); _C4x[206] = (_n*(_n*(_n*((real(67522179001937297408.L)- real(26979889106708070400.L)*_n)*_n-real(30955581145869975552.L))+ real(12533235212662341632.L))-real(20643526053379440640.L))+ real(5957931413328660480.L))/real(1937718887843349433202625.L); _C4x[207] = (_n*(_n*((real(8937338642882297856.L)- real(7264491379390939136.L)*_n)*_n-real(8331323368101773312.L))+ real(497573960000798720.L))+real(166567353005081600.L))/ real(576078588277752534195375.L); _C4x[208] = (_n*((real(67893913511264256.L)-real(193468457828745216.L)* _n)*_n-real(109001388295454720.L))+real(34903794537431040.L))/ real(14050697275067134980375.L); _C4x[209] = ((real(330570665558016.L)-real(3670039933747200.L)*_n)*_n+ real(105796914356224.L))/real(326760401745747325125.L); _C4x[210] = (real(118608642048.L)-real(339124158464.L)*_n)/ real(58423100616082125.L); _C4x[211] = real(13087612928.L)/real(40785938165944125.L); _C4x[212] = (_n*(_n*(_n*(_n*(_n*(_n*(_n*(_n*(_n*(_n*(_n*(_n*(_n*(_n*(_n* (_n*(_n*(_n*(_n*(_n*(real(38323224576.L)*_n+real(106018897920.L))+ real(312755748864.L))+real(993459437568.L))+real(3440313237504.L))+ real(13200839933952.L))+real(57378650849280.L))+ real(291568551723008.L))+real(1817840664313856.L))+ real(15102060903530496.L))+real(198424300204720128.L))+ real(7395814825812295680.L))-real(259593100386011578368.L))+ real(2845909544972571377664.L))-real(17431195962956999688192.L))+ real(70436261238071141597184.L))-real(202178157257426424954880.L))+ real(426412113488390278086656.L))-real(664218869087684856250368.L))+ real(738020965652983173611520.L))-real(499249476765253323325440.L))+ real(145614430723198885969920.L))/real(314039641089812164807705425.L); _C4x[213] = (_n*(_n*(_n*(_n*(_n*(_n*(_n*(_n*(_n*(_n*(_n*(_n*(_n*(_n*(_n* (_n*(_n*(_n*(_n*(real(2356747960320.L)*_n+real(7255434461184.L))+ real(24284564029440.L))+real(89784958058496.L))+ real(374695538982912.L))+real(1820615840890880.L))+ real(10802487333224448.L))+real(84935704230494208.L))+ real(1049313565000859648.L))+real(36491613163230855168.L))- real(1184051915039802654720.L))+real(11865845306533247188992.L))- real(65532836008557589561344.L))+real(234787537460237138657280.L))- real(585308729749358846672896.L))+real(1045871757777419981291520.L))- real(1343707137464741778161664.L))+real(1213634476851572329938944.L))- real(729338366057065724510208.L))+real(260477987877523473039360.L))- real(41604123063771110277120.L))/real(314039641089812164807705425.L); _C4x[214] = (_n*(_n*(_n*(_n*(_n*(_n*(_n*(_n*(_n*(_n*(_n*(_n*(_n*(_n*(_n* (_n*(_n*(_n*(real(95622952648704.L)*_n+real(341967649112064.L))+ real(1376125295001600.L))+real(6424438958456832.L))+ real(36472018729697280.L))+real(273026171921235968.L))+ real(3192592336066445312.L))+real(104342602239235325952.L))- real(3153894263012104077312.L))+real(29116303580112019783680.L))- real(145979963963411779289088.L))+real(465285502321503145820160.L))- real(1001298660985214437687296.L))+real(1468489325205846830874624.L))- real(1395955117828853601402880.L))+real(675429198673490273632256.L))+ real(160478392531439748907008.L))-real(509379176293823680610304.L))+ real(347303983836697964052480.L))-real(90443745790806761472000.L))/ real(314039641089812164807705425.L); _C4x[215] = (_n*(_n*(_n*(_n*(_n*(_n*(_n*(_n*(_n*(_n*(_n*(_n*(_n*(_n*(_n* (_n*(_n*(real(3749725005152256.L)*_n+real(16886650371571712.L))+ real(92132322509324288.L))+real(659895955329908736.L))+ real(7343669488133341184.L))+real(226920745256900624384.L))- real(6431206852000456114176.L))+real(55065655493504444923904.L))- real(252233232939834397425664.L))+real(718219025096796909600768.L))- real(1329749515211165535305728.L))+real(1551966380199111933034496.L))- real(912968965357573027921920.L))-real(228147081855301138776064.L))+ real(909205858761418150510592.L))-real(750141836056627665960960.L))+ real(284895720074471395033088.L))-real(36659864960540340649984.L))- real(3255974848469043412992.L))/real(314039641089812164807705425.L); _C4x[216] = (_n*(_n*(_n*(_n*(_n*(_n*(_n*(_n*(_n*(_n*(_n*(_n*(_n*(_n*(_n* (_n*(real(193889231431008256.L)*_n+real(1334234851179495424.L))+ real(14195942025094234112.L))+real(416846581600799948800.L))- real(11138888975916869353472.L))+real(88980190149058827911168.L))- real(374531129899296507822080.L))+real(956626325385210376486912.L))- real(1518242191729673590276096.L))+real(1347897413453936607625216.L))- real(230026316312536969379840.L))-real(904464764416532329529344.L))+ real(1026658068930258334646272.L))-real(393851560165027623206912.L))- real(43523529157238895149056.L))+real(43864780754260493074432.L))+ real(27478265387846026657792.L))-real(16159282581290808049664.L))/ real(314039641089812164807705425.L); _C4x[217] = (_n*(_n*(_n*(_n*(_n*(_n*(_n*(_n*(_n*(_n*(_n*(_n*(_n*(_n*(_n* (real(24354651895482023936.L)*_n+real(682547908895860850688.L))- real(17279401597770331586560.L))+real(129445585687353401802752.L))- real(503266799659981826162688.L))+real(1157263510700160301137920.L))- real(1565864711205645542490112.L))+real(973104725414398885625856.L))+ real(397646575408843958779904.L))-real(1187413586253403476459520.L))+ real(737481003260777950347264.L))-real(8123853036626178998272.L))- real(101601905878894806827008.L))-real(95466743944136461123584.L))+ real(115557663439225632063488.L))-real(33401878015390745362432.L))+ real(1210074943683897360384.L))/real(314039641089812164807705425.L); _C4x[218] = (_n*(_n*(_n*(_n*(_n*(_n*(_n*(_n*(_n*(_n*(_n*(_n*(_n* ((real(174789494833237517664256.L)-real(24767165321852208807936.L)*_n)* _n-real(630581566453052440838144.L))+real(1309469623921914849263616.L))- real(1497878628689001121316864.L))+real(535490081916544262078464.L))+ real(853112635520440747425792.L))-real(1154977897325426578030592.L))+ real(352926388853612272943104.L))+real(159942760531815762493440.L))+ real(36232053680558848344064.L))-real(192285152806477456474112.L))+ real(68511348162877666099200.L))+real(12894588647206039846912.L))+ real(1279156929716178386944.L))-real(5229036853418211606528.L))/ real(314039641089812164807705425.L); _C4x[219] = (_n*(_n*(_n*(_n*(_n*(_n*(_n*(_n*(_n*(_n*(_n*(_n* ((real(1411523848449549596622848.L)-real(750796173889068810108928.L)* _n)*_n-real(1347519277492177146478592.L))+ real(109812168713178043645952.L))+real(1117024747522877287301120.L))- real(945902117389189685706752.L))+real(49121093927135074058240.L))+ real(134874280090906739081216.L))+real(181522242560836680810496.L))- real(165489086005093264261120.L))-real(8712033594873663717376.L))- real(2218106377444991172608.L))+real(44807732642953863102464.L))- real(21258472128924072017920.L))+real(1794119540158754816000.L))/ real(314039641089812164807705425.L); _C4x[220] = (_n*(_n*(_n*(_n*(_n*(_n*(_n*(_n*(_n*(_n*(_n*((- real(1146200471619475550240768.L)*_n-real(261875871122117134123008.L))* _n+real(1218326021822826050486272.L))-real(675475330509238721576960.L))- real(123077088994828954632192.L))+real(18067816558988848267264.L))+ real(247445699944332096962560.L))-real(78715960977854018617344.L))- real(30841053808481728200704.L))-real(53529437347574237364224.L))+ real(52723460871608094425088.L))-real(2681345414299398963200.L))- real(1482440326242132819968.L))-real(2026986195987958431744.L))/ real(314039641089812164807705425.L); _C4x[221] = (_n*(_n*(_n*(_n*(_n*(_n*(_n*(_n*(_n*(_n*(_n* (real(1201262920050208181059584.L)*_n-real(415750371721314383167488.L))- real(179174664712868242391040.L))-real(108648055795350193569792.L))+ real(234348287961902755086336.L))-real(965884489933128204288.L))- real(147469438483870777344.L))-real(85626748530084985438208.L))+ real(26558363620069875908608.L))+real(3415732906600992079872.L))+ real(18849221960713601286144.L))-real(13310900513910783737856.L))+ real(1637922831357138665472.L))/real(314039641089812164807705425.L); _C4x[222] = (_n*(_n*(_n*(_n*(_n*(_n*(_n*(_n*(_n*((- real(156547756038606249000960.L)*_n-real(203064063039653428592640.L))* _n+real(175481801560763903508480.L))+real(37730562770338672803840.L))+ real(48662925765217370505216.L))-real(82633433398391259267072.L))- real(38300106132776026112.L))-real(12943607418138637893632.L))+ real(31538668226661486428160.L))-real(6557382754233867042816.L))- real(1184094358740381204480.L))-real(840882393298311512064.L))/ real(314039641089812164807705425.L); _C4x[223] = (_n*(_n*(_n*(_n*(_n*(_n*(_n*(_n*(_n* (real(103839089292858941767680.L)*_n+real(37954623472046002667520.L))+ real(87921831512023599415296.L))-real(56914878314376772190208.L))- real(8374621376916904476672.L))-real(34769447684571821244416.L))+ real(26884873922242517401600.L))-real(20105568363257266176.L))+ real(8802779476990155030528.L))-real(8579176685245715447808.L))+ real(1361485417850272382976.L))/real(314039641089812164807705425.L); _C4x[224] = (_n*(_n*(_n*(_n*(_n*(_n*(_n*(_n* (real(106397118712333538426880.L)*_n-real(26353269446097441390592.L))+ real(1150308504748652232704.L))-real(47557283913553796923392.L))+ real(13774852237613426278400.L))-real(3525517425994784309248.L))+ real(18336362436941025116160.L))-real(6565849939978130292736.L))- real(650950777347756261376.L))-real(343846103940597350400.L))/ real(314039641089812164807705425.L); _C4x[225] = (_n*(_n*(_n*(_n*(_n*(_n*(_n*(real(19648756765982143283200.L)* _n-real(47558967248843745787904.L))+real(2954409512541331914752.L))- real(13819804139340561907712.L))+real(20188105575504579395584.L))- real(2325477329569987428352.L))+real(4605313951944489828352.L))- real(5733809212763759181824.L))+real(1104779249964513722368.L))/ real(314039641089812164807705425.L); _C4x[226] = (_n*(_n*(_n*(_n*(_n*((-real(475664108904792457216.L)*_n- real(24102154397918989123584.L))*_n+real(15522335200959713509376.L))- real(2040948183275608735744.L))+real(10949172862437826756608.L))- real(5581459902086741229568.L))-real(270354579134970068992.L))- real(120320035327844352000.L))/real(314039641089812164807705425.L); _C4x[227] = (_n*(_n*(_n*(_n*(_n*(real(681822016249028149248.L)*_n- real(476134816118335864832.L))+real(1082746294884628430848.L))- real(246222891562836688896.L))+real(208002135910993887232.L))- real(305301130790091358208.L))+real(68772858650836893696.L))/ real(24156895468447089600592725.L); _C4x[228] = (_n*(_n*(_n*(_n*(real(1019737540579528146944.L)*_n- real(165420699690441637888.L))+real(526156322565434245120.L))- real(346624209820278587392.L))-real(3068233984327942144.L))- real(1253534193385357312.L))/real(24156895468447089600592725.L); _C4x[229] = (_n*(_n*(_n*(real(20176394120014594048.L)*_n- real(6848788448664354816.L))+real(3674985233203068928.L))- real(5895747338098442240.L))+real(1511858300431564800.L))/ real(652889066714786205421425.L); _C4x[230] = (_n*(_n*(real(227962473897000960.L)*_n- real(181666859005771776.L))+real(4531352468717568.L))+ real(1623576417009664.L))/real(15924123578409419644425.L); _C4x[231] = (_n*(real(87718379913216.L)*_n-real(144562380079104.L))+ real(41360414670848.L))/real(21784026783049821675.L); _C4x[232] = (real(1221967478784.L)*_n+real(415240683520.L))/ real(2449875352501043775.L); _C4x[233] = real(474546176.L)/real(302118060488475.L); _C4x[234] = (_n*(_n*(_n*(_n*(_n*(_n*(_n*(_n*(_n*(_n*(_n*(_n*(_n*(_n*(_n* (_n*(_n*(_n*((-real(34760294400.L)*_n-real(118491709440.L))*_n- real(441537527808.L))-real(1828418224128.L))-real(8604321054720.L))- real(47503022489600.L))-real(323020552929280.L))- real(2939487031656448.L))-real(42509504765493248.L))- real(1753517071576596480.L))+real(68546576434357862400.L))- real(843122890142601707520.L))+real(5845652038322038505472.L))- real(27036140677239428087808.L))+real(90120468924131426959360.L))- real(225301172310328567398400.L))+real(429805313330472959344640.L))- real(623217704329185791049728.L))+real(659877569289726131699712.L))- real(434129979795872455065600.L))+real(124812369191313330831360.L))/ real(350985481218025360667435475.L); _C4x[235] = (_n*(_n*(_n*(_n*(_n*(_n*(_n*(_n*(_n*(_n*(_n*(_n*(_n*(_n*(_n* (_n*(_n*((-real(1129750462464.L)*_n-real(4510936203264.L))*_n- real(20401298079744.L))-real(107840823885824.L))- real(699101085696000.L))-real(6034783977078784.L))- real(82305636886380544.L))-real(3180072739478175744.L))+ real(115498324447845154816.L))-real(1307167271538917376000.L))+ real(8242040350467189374976.L))-real(34174581147113455878144.L))+ real(100350359991194994343936.L))-real(216289125417915424702464.L))+ real(346617188169736257536000.L))-real(410394750792967728922624.L))+ real(348900783762383931703296.L))-real(200664523994536601452544.L))+ real(69460796767339592810496.L))-real(10853249494896811376640.L))/ real(116995160406008453555811825.L); _C4x[236] = (_n*(_n*(_n*(_n*(_n*(_n*(_n*(_n*(_n*(_n*(_n*(_n*(_n*(_n*(_n* (_n*((-real(242559872925696.L)*_n-real(1232842657366016.L))*_n- real(7655098394083328.L))-real(63009120421675008.L))- real(815073208086560768.L))-real(29680741605785993216.L))+ real(1008180352205124009984.L))-real(10569860153082438483968.L))+ real(60990150631500930875392.L))-real(227728401268181083619328.L))+ real(588780361305740630032384.L))-real(1079965478015771222736896.L))+ real(1389129273798950573309952.L))-real(1163940517873974352805888.L))+ real(449052761897074784468992.L))+real(244716027320752308486144.L))- real(477310111119630496956416.L))+real(302926252568675446423552.L))- real(77058071413767360774144.L))/real(350985481218025360667435475.L); _C4x[237] = (_n*(_n*(_n*(_n*(_n*(_n*(_n*(_n*(_n*(_n*(_n*(_n*(_n*(_n*(_n* ((-real(20724700514615296.L)*_n-real(163367289792495616.L))*_n- real(2014034275887742976.L))-real(69485076333488766976.L))+ real(2219880423724672876544.L))-real(21686614110547220627456.L))+ real(115172823355485820289024.L))-real(388997571671190642098176.L))+ real(885972811022257025449984.L))-real(1366729549160097771421696.L))+ real(1333068227773522881019904.L))-real(560882818651309438140416.L))- real(436607606765714969460736.L))+real(877244105410187733499904.L))- real(628812942778464443826176.L))+real(216374974876285638017024.L))- real(22887465601498869661696.L))-real(3376566509523452428288.L))/ real(350985481218025360667435475.L); _C4x[238] = (_n*(_n*(_n*(_n*(_n*(_n*(_n*(_n*(_n*(_n*(_n*(_n*(_n*(_n*((- real(4148491175365443584.L)*_n-real(136210816196921524224.L))*_n+ real(4112824759486986059776.L))-real(37633302048158915231744.L))+ real(184894111872173532512256.L))-real(567243239338076522676224.L))+ real(1138428474799567563390976.L))-real(1454713993026997920989184.L))+ real(966793751900622470250496.L))+real(174029480894057554640896.L))- real(995585475736398052982784.L))+real(856546323054646419521536.L))- real(244110150568943607087104.L))-real(71772293433957586305024.L))+ real(31837271636593607704576.L))+real(29165207244820718288896.L))- real(14608224320142719680512.L))/real(350985481218025360667435475.L); _C4x[239] = (_n*(_n*(_n*(_n*(_n*(_n*(_n*(_n*(_n*(_n*(_n*(_n*(_n*(_n* (real(6771994398722315255808.L)*_n-real(58302747011422546296832.L))+ real(266206116333677472382976.L))-real(744614091698941118644224.L))+ real(1316169824117630978490368.L))-real(1361700583434129969774592.L))+ real(456349226729114097942528.L))+real(757534446801672917221376.L))- real(1105464800073373915807744.L))+real(480862003253177009307648.L))+ real(90901905554643183730688.L))-real(71344148263531542740992.L))- real(109632774671083518296064.L))+real(101868967302095119056896.L))- real(25900781590293357002752.L))+real(540046749060123131904.L))/ real(350985481218025360667435475.L); _C4x[240] = (_n*(_n*(_n*(_n*(_n*(_n*(_n*(_n*(_n*(_n*(_n*(_n*(_n* (real(354709244620360674967552.L)*_n-real(907545477431171639410688.L))+ real(1410500412077264089382912.L))-real(1138293428627189882421248.L))- real(59407750569307484979200.L))+real(1088607588403619225403392.L))- real(908928944457705542647808.L))+real(95936055753985086717952.L))+ real(166861321871471921856512.L))+real(92765456209060809932800.L))- real(178186628785300582694912.L))+real(43369812221643580768256.L))+ real(15100107637849452445696.L))+real(2933905239802040025088.L))- real(5017498422402857861120.L))/real(350985481218025360667435475.L); _C4x[241] = (_n*(_n*(_n*(_n*(_n*(_n*(_n*(_n*(_n*(_n*(_n*(_n* (real(1426804803851522574123008.L)*_n-real(840209013575262186504192.L))- real(496630593742902415851520.L))+real(1184551272471290382909440.L))- real(589542078691332115660800.L))-real(136900080555243530616832.L))+ real(61623966204081679106048.L))+real(216886379849209054494720.L))- real(119065125638614892412928.L))-real(25502862224153972310016.L))- real(9844425867149294174208.L))+real(43366505857368511741952.L))- real(17785223467550245912576.L))+real(1245890264597720727552.L))/ real(350985481218025360667435475.L); _C4x[242] = (_n*(_n*(_n*(_n*(_n*(_n*(_n*(_n*(_n*(_n* ((real(1111177566917860746854400.L)-real(819912639586453998796800.L)* _n)*_n-real(277464011665858253291520.L))- real(204195189106138365296640.L))-real(92478054724920504483840.L))+ real(233967909492513279836160.L))-real(21723613312106936401920.L))- real(25330937350536517124096.L))-real(62101812676567941251072.L))+ real(43539070724307021201408.L))+real(970509168689003102208.L))- real(833029778145022574592.L))-real(2070875281419960221696.L))/ real(350985481218025360667435475.L); _C4x[243] = (_n*(_n*(_n*(_n*(_n*(_n*(_n*(_n*(_n*((- real(37501384436491852185600.L)*_n-real(156820502467363555246080.L))*_n- real(210728061936941515407360.L))+real(172644828152490664919040.L))+ real(40249964162396108881920.L))+real(23949368029895259586560.L))- real(82771509773019731984384.L))+real(12810088426684203139072.L))+ real(2670719123877110218752.L))+real(19414212169321490153472.L))- real(11670099203835033550848.L))+real(1245027419534709293056.L))/ real(350985481218025360667435475.L); _C4x[244] = (_n*(_n*(_n*(_n*(_n*(_n*(_n*(_n* ((real(84800051272131839262720.L)-real(264705504861770549821440.L)*_n)* _n+real(48103900366085214437376.L))+real(76320670505274655113216.L))- real(64301844447342231552000.L))-real(9679446772873103409152.L))- real(18268506848372367294464.L))+real(29020423728834874441728.L))- real(3862373396634494042112.L))-real(1026769083456114130944.L))- real(926864222959704178688.L))/real(350985481218025360667435475.L); _C4x[245] = (_n*(_n*(_n*(_n*(_n*(_n*(_n*(_n* (real(17040329021547538808832.L)*_n+real(104102126249085780361216.L))- real(28787312733256159330304.L))-real(7804799008006364725248.L))- real(39706277843021940654080.L))+real(20126041445904469196800.L))+ real(1353487132347120746496.L))+real(9390129486292043431936.L))- real(7768909430818875637760.L))+real(1084816050753572831232.L))/ real(350985481218025360667435475.L); _C4x[246] = (_n*(_n*(_n*(_n*(_n*(_n*(_n*(real(1538576775560051032064.L)* _n+real(11696841452753850466304.L))-real(46711589139438944387072.L))+ real(5428727033367220453376.L))-real(5158046643560283897856.L))+ real(17973684672329991847936.L))-real(4832631768765986504704.L))- real(689554719612808462336.L))-real(423924537172247609344.L))/ real(350985481218025360667435475.L); _C4x[247] = (_n*(_n*(_n*(_n*(_n*((-real(38871421772234661822464.L)*_n- real(2834982596851997343744.L))*_n-real(17449094233977276858368.L))+ real(17415306974260256309248.L))-real(719272851125915615232.L))+ real(4954237305599335333888.L))-real(5315018905562510262272.L))+ real(908122151083312349184.L))/real(350985481218025360667435475.L); _C4x[248] = (_n*(_n*(_n*(_n*((real(10579612556489078079488.L)- real(26970900492980428210176.L)*_n)*_n-real(1920614827565082738688.L))+ real(11147193197405362716672.L))-real(4501617148425879420928.L))- real(374458901113073041408.L))-real(185540687386326564864.L))/ real(350985481218025360667435475.L); _C4x[249] = (_n*(_n*(_n*((real(1008566220850160730112.L)- real(602834335072111296512.L)*_n)*_n-real(144241694179103604736.L))+ real(220365777115864367104.L))-real(287932417995784060928.L))+ real(57837484643640672256.L))/real(26998883170617335435956575.L); _C4x[250] = (_n*(_n*((real(14768730917217239040.L)- real(2984159999753715712.L)*_n)*_n-real(7967891541553315840.L))- real(324951555039035392.L))-real(140036432547348480.L))/ real(729699545151819876647475.L); _C4x[251] = (_n*((real(30674408653717504.L)-real(39005275696398336.L)*_n)* _n-real(45794506234134528.L))+real(10522262427795456.L))/ real(5932516627250568102825.L); _C4x[252] = ((-real(6558828537577472.L)*_n-real(40136675950592.L))*_n- real(15708310798336.L))/real(729246229927810697025.L); _C4x[253] = (real(448813334528.L)-real(1742758477824.L)*_n)/ real(304232886911894325.L); _C4x[254] = real(1104084992.L)/real(17220729447843075.L); _C4x[255] = (_n*(_n*(_n*(_n*(_n*(_n*(_n*(_n*(_n*(_n*(_n*(_n*(_n*(_n*(_n* (_n*(_n*(_n*(real(59828600832.L)*_n+real(265958719488.L))+ real(1347255533568.L))+real(8030699651072.L))+real(59154707251200.L))+ real(585237237071872.L))+real(9238387813777408.L))+ real(417859387269316608.L))-real(18002775268186390528.L))+ real(245492390020723507200.L))-real(1900111098760399945728.L))+ real(9892641911006526701568.L))-real(37509600579233080410112.L))+ real(108144562708957712351232.L))-real(242632031718815380275200.L))+ real(427032375825115069284352.L))-real(584029572819642668285952.L))+ real(594275705676127627378688.L))-real(382034382220367760457728.L))+ real(108532494948968113766400.L))/real(387931321346238556527165525.L); _C4x[256] = (_n*(_n*(_n*(_n*(_n*(_n*(_n*(_n*(_n*(_n*(_n*(_n*(_n*(_n*(_n* (_n*(_n*(real(10351382888448.L)*_n+real(59157457666048.L))+ real(416147233046528.L))+real(3914105647792128.L))+ real(58435386011025408.L))+real(2484582887328841728.L))- real(99911032270353334272.L))+real(1260960344316374417408.L))- real(8942469460488221622272.L))+real(42143327891443289161728.L))- real(142518385904907035082752.L))+real(359882321641313191067648.L))- real(691585602687638093955072.L))+real(1014895126960987762065408.L))- real(1123529031582655690309632.L))+real(908270099665182825381888.L))- real(503524243232975132557312.L))+real(169793058764607893536768.L))- real(26047798787752347303936.L))/real(387931321346238556527165525.L); _C4x[257] = (_n*(_n*(_n*(_n*(_n*(_n*(_n*(_n*(_n*(_n*(_n*(_n*(_n*(_n*(_n* (_n*(real(1631184712892416.L)*_n+real(14652169630253056.L))+ real(207909583444770816.L))+real(8354511514727612416.L))- real(315358961012597325824.L))+real(3705367364162788786176.L))- real(24213724918613314371584.L))+real(103773727288851762774016.L))- real(313586367757843162988544.L))+real(690251994504135039778816.L))- real(1112978880158086656425984.L))+real(1281097127475345207853056.L))- real(955173371181840962945024.L))+real(276057518335257934299136.L))+ real(294815624989149543530496.L))-real(443275093348759428399104.L))+ real(266399454268608936411136.L))-real(66566596902033776443392.L))/ real(387931321346238556527165525.L); _C4x[258] = (_n*(_n*(_n*(_n*(_n*(_n*(_n*(_n*(_n*(_n*(_n*(_n*(_n*(_n*(_n* (real(549079324393734144.L)*_n+real(20948185607395344384.L))- real(745922130393186697216.L))+real(8201472422076716417024.L))- real(49637082351917623934976.L))+real(194307855120787291766784.L))- real(525787049041850915618816.L))+real(1004612443159064418975744.L))- real(1328260147727517001711616.L))+real(1091055665812902651101184.L))- real(271462506719023365881856.L))-real(564588266895018374987776.L))+ real(819776013926040615256064.L))-real(525965291650948892983296.L))+ real(165552095521119355797504.L))-real(13787423014256258318336.L))- real(3293399846727308279808.L))/real(387931321346238556527165525.L); _C4x[259] = (_n*(_n*(_n*(_n*(_n*(_n*(_n*(_n*(_n*(_n*(_n*(_n*(_n* ((real(15220161420201602056192.L)-real(1472588543149162364928.L)*_n)*_n- real(85702411275349202567168.L))+real(307658670199147522424832.L))- real(746863387031370552311808.L))+real(1232094210587097376489472.L))- real(1291049163756855836540928.L))+real(593010800494011830239232.L))+ real(461523356466477643333632.L))-real(994004619836187557756928.L))+ real(690413321825558742433792.L))-real(134966021733880816467968.L))- real(83310286619741883727872.L))+real(20887173221472899432448.L))+ real(29742544852360402829312.L))-real(13226718739275802607616.L))/ real(387931321346238556527165525.L); _C4x[260] = (_n*(_n*(_n*(_n*(_n*(_n*(_n*(_n*(_n*(_n*(_n*(_n* ((real(435034857939829388214272.L)-real(131675314027856838787072.L)*_n)* _n-real(948698098882376449916928.L))+real(1340810629437482313187328.L))- real(1048707087838763548672000.L))+real(3509199733743899639808.L))+ real(948303782487182532411392.L))-real(946797564108156832841728.L))+ real(272178626310987577294848.L))+real(138668886768427099750400.L))- real(37565142405810170626048.L))-real(116603982716308002177024.L))+ real(89040273914827296997376.L))-real(20157452825326086258688.L))+ real(109458059422021976064.L))/real(387931321346238556527165525.L); _C4x[261] = (_n*(_n*(_n*(_n*(_n*(_n*(_n*(_n*(_n*(_n*(_n* ((real(1331062244050061764853760.L)-real(1112169839020350363402240.L)* _n)*_n-real(684421689374159667200000.L))- real(515276787863609870909440.L))+real(1121015313757820808069120.L))- real(631954776783314747392000.L))-real(70966395620946555699200.L))+ real(132414132267215298232320.L))+real(133870458354128595714048.L))- real(157341467588939883741184.L))+real(23828538649046629220352.L))+ real(15370301406152461647872.L))+real(4232610323214679146496.L))- real(4766791176006094290944.L))/real(387931321346238556527165525.L); _C4x[262] = (_n*(_n*(_n*(_n*(_n*(_n*(_n*(_n*(_n*(_n*((- real(278236178658557637427200.L)*_n-real(883117636635223025254400.L))* _n+real(1044896784492538437304320.L))-real(267854067344467568885760.L))- real(208658980714224927375360.L))-real(24499146390814179983360.L))+ real(223500680859398512312320.L))-real(75165298228229899812864.L))- real(33123728290571614158848.L))-real(16974304258141263495168.L))+ real(41187502861266538463232.L))-real(14885832030268663267328.L))+ real(852867963795436732416.L))/real(387931321346238556527165525.L); _C4x[263] = (_n*(_n*(_n*(_n*(_n*(_n*(_n*(_n*(_n*(_n* (real(825152530344188549529600.L)*_n+real(16093135374109932257280.L))- real(173091267703238940426240.L))-real(179661612431230988451840.L))+ real(192204175551686041927680.L))+real(19332614716294944522240.L))- real(12574226638832801939456.L))-real(66506217074977723645952.L))+ real(34694260040284171665408.L))+real(3366563656193789657088.L))- real(204926675133353951232.L))-real(2066579183102025138176.L))/ real(387931321346238556527165525.L); _C4x[264] = (_n*(_n*(_n*(_n*(_n*(_n*(_n*(_n*((- real(49148219012744698920960.L)*_n-real(258309901964713729720320.L))*_n+ real(97424668981259296309248.L))+real(55632385206458356072448.L))+ real(47499322809821964533760.L))-real(74201862753821044768768.L))+ real(2100464549311769739264.L))+real(825499977944081104896.L))+ real(19545780271046056738816.L))-real(10208649146497274740736.L))+ real(947277609177333891072.L))/real(387931321346238556527165525.L); _C4x[265] = (_n*(_n*(_n*(_n*(_n*(_n*(_n*(_n* (real(3886406473063184990208.L)*_n+real(31651070108403767443456.L))+ real(93506396640812094980096.L))-real(43051750740610863071232.L))- real(13802269528960448593920.L))-real(23100030040802622177280.L))+ real(25944758250810025967616.L))-real(1776504428600317968384.L))- real(805184637733605212160.L))-real(977643675088462807040.L))/ real(387931321346238556527165525.L); _C4x[266] = (_n*(_n*(_n*(_n*(_n*(_n*(_n*(real(102667449090387528908800.L)* _n-real(4176143654067686604800.L))-real(1664558069512969125888.L))- real(41901475237771467554816.L))+real(13676609102710294183936.L))+ real(1783429219606151036928.L))+real(9822399889695569870848.L))- real(7008449331187379339264.L))+real(867123963816388067328.L))/ real(387931321346238556527165525.L); _C4x[267] = (_n*(_n*(_n*(_n*(_n*(_n*(real(24680978487302704594944.L)*_n- real(41852681246037032042496.L))-real(888324737424044326912.L))- real(7405281786214815367168.L))+real(17163496346381762691072.L))- real(3368486034509553205248.L))-real(656845125089254965248.L))- real(480366195184442671104.L))/real(387931321346238556527165525.L); _C4x[268] = (_n*(_n*(_n*(_n*((-real(5019745509032155152384.L)*_n- real(20553178504582563627008.L))*_n+real(14273677180576945143808.L))+ real(307067548871203749888.L))+real(5280901475645194764288.L))- real(4904366406848135299072.L))+real(748980239998893686784.L))/ real(387931321346238556527165525.L); _C4x[269] = (_n*(_n*(_n*(_n*(real(5984633002620612509696.L)*_n- real(2481313182312589950976.L))+real(11100632093381464424448.L))- real(3532921645127981596672.L))-real(419664577389087686656.L))- real(235081389196733054976.L))/real(387931321346238556527165525.L); _C4x[270] = (_n*(_n*(_n*(real(3492920937966206976.L)*_n- real(257661145165332480.L))+real(906922006895656960.L))- real(1043443055627075584.L))+real(188380220089171968.L))/ real(115215717655550506839075.L); _C4x[271] = (_n*(_n*(real(1945805193171959808.L)*_n- real(857735694188019712.L))-real(61147943509426176.L))- real(28926926391607296.L))/real(103975159835496798854775.L); _C4x[272] = (_n*(real(1318364018376704.L)*_n-real(1784303872638976.L))+ real(370082037891072.L))/real(268669663657614467325.L); _C4x[273] = (-real(4212251426816.L)*_n-real(1768612691968.L))/ real(17149127467507306425.L); _C4x[274] = real(7370964992.L)/real(6344479270257975.L); _C4x[275] = (_n*(_n*(_n*(_n*(_n*(_n*(_n*(_n*(_n*(_n*(_n*(_n*(_n*(_n*(_n* (_n*((-real(218791673856.L)*_n-real(1400536825856.L))*_n- real(11110140870656.L))-real(118739630555136.L))- real(2031767011721216.L))-real(99991962219708416.L))+ real(4707313913727811584.L))-real(70478949986091401216.L))+ real(602274663517508337664.L))-real(3484589124637012525056.L))+ real(14798748875001633439744.L))-real(48264101444607599968256.L))+ real(124107689428990971346944.L))-real(255110250492925885546496.L))+ real(420181589047172046782464.L))-real(547341806785132008308736.L))+ real(538653841598066420875264.L))-real(339586117529215787073536.L))+ real(95508595555091940114432.L))/real(424877161474451752386895575.L); _C4x[276] = (_n*(_n*(_n*(_n*(_n*(_n*(_n*(_n*(_n*(_n*(_n*(_n*(_n*(_n*(_n* ((-real(84110928248832.L)*_n-real(856422384402432.L))*_n- real(13896008693972992.L))-real(644993673175498752.L))+ real(28458089775888334848.L))-real(396398904996530225152.L))+ real(3124087334077357621248.L))-real(16497566162978070331392.L))+ real(63152800431693017120768.L))-real(182841201745263310405632.L))+ real(409656275676181580218368.L))-real(717066650034170056671232.L))+ real(978260610793222950617088.L))-real(1023600262039727392161792.L))+ real(792974277073986343927808.L))-real(426088031783042722824192.L))+ real(140518393460365153271808.L))-real(21224132345575986692096.L))/ real(424877161474451752386895575.L); _C4x[277] = (_n*(_n*(_n*(_n*(_n*(_n*(_n*(_n*(_n*(_n*(_n*(_n*(_n*(_n*((- real(52995609652625408.L)*_n-real(2330821839456043008.L))*_n+ real(96862625780142702592.L))-real(1261692576340291616768.L))+ real(9217173162693369004032.L))-real(44625020542874191659008.L))+ real(154415325899211661115392.L))-real(396509496805989713707008.L))+ real(766812972890940875210752.L))-real(1110348094436664575787008.L))+ real(1159940972984586586816512.L))-real(772801974612617842393088.L))+ real(144557494463902108352512.L))+real(322553584988565465464832.L))- real(409948333609442619686912.L))+real(236086010518086615040000.L))- real(58183397292182446276608.L))/real(424877161474451752386895575.L); _C4x[278] = (_n*(_n*(_n*(_n*(_n*(_n*(_n*(_n*(_n*(_n*(_n*(_n*(_n*(_n* (real(244993523835664859136.L)*_n-real(2997692002079598444544.L))+ real(20391608393570038317056.L))-real(90887323143384695046144.L))+ real(285073430590796758777856.L))-real(648733217092759573233664.L))+ real(1072068205803073664188416.L))-real(1236738985646846057119744.L))+ real(851455338207468685623296.L))-real(42603007777238484516864.L))- real(635384053865395209109504.L))+real(751510380834552289427456.L))- real(440054114480934289932288.L))+real(127469275788092729458688.L))- real(7692111469971112984576.L))-real(3116335338838743318528.L))/ real(424877161474451752386895575.L); _C4x[279] = (_n*(_n*(_n*(_n*(_n*(_n*(_n*(_n*(_n*(_n*(_n*(_n*(_n* (real(37691298526665312829440.L)*_n-real(155231442352606952816640.L))+ real(442426812329801977692160.L))-real(891060280546618937180160.L))+ real(1241345557744393912320000.L))-real(1068836648786189342474240.L))+ real(259898604745432561090560.L))+real(648646631561154999091200.L))- real(937118889747330231173120.L))+real(540955821564462366720000.L))- real(57345853626480894935040.L))-real(85056859046449399201792.L))+ real(11519605159903650381824.L))+real(29600893246049550860288.L))- real(12008192989533587374080.L))/real(424877161474451752386895575.L); _C4x[280] = (_n*(_n*(_n*(_n*(_n*(_n*(_n*(_n*(_n*(_n*(_n*(_n* (real(610114148412857715261440.L)*_n-real(1084876624977513425141760.L))+ real(1248343393947934250762240.L))-real(692927849841223134085120.L))- real(351602565555781978030080.L))+real(1009964965611276767068160.L))- real(760650029796242017484800.L))+real(114236578390335962480640.L))+ real(153084531563546179272704.L))-real(5968475553252058857472.L))- real(118330049176476000976896.L))+real(77440851961195664506880.L))- real(15733189386938984955904.L))-real(167406443821915963392.L))/ real(424877161474451752386895575.L); _C4x[281] = (_n*(_n*(_n*(_n*(_n*(_n*(_n*(_n*(_n*(_n*(_n* (real(1110888451586257091297280.L)*_n-real(228267823844477695426560.L))- real(809765012940224766935040.L))+real(1021205736789361588961280.L))- real(376908671342120754216960.L))-real(162628702779099284766720.L))+ real(80524447810108690268160.L))+real(159280245898590948425728.L))- real(133892619361773928054784.L))+real(9139377171596455182336.L))+ real(14519956012961410056192.L))+real(5217790864403667615744.L))- real(4502630072345316294656.L))/real(424877161474451752386895575.L); _C4x[282] = (_n*(_n*(_n*(_n*(_n*(_n*(_n*(_n*(_n* ((real(801154767786817817149440.L)-real(1052891185037563951841280.L)* _n)*_n-real(24710033090930163056640.L))- real(202701431218160963420160.L))-real(100408462362032253960192.L))+ real(209415990150798124253184.L))-real(37748933651953004576768.L))- real(34391800801816047779840.L))-real(23005446981136840392704.L))+ real(38590994935648442384384.L))-real(12472969903138957950976.L))+ real(568230604185547046912.L))/real(424877161474451752386895575.L); _C4x[283] = (_n*(_n*(_n*(_n*(_n*(_n*(_n*(_n*(_n* (real(183866786074538299883520.L)*_n-real(86129889566253152993280.L))- real(229792121168218294321152.L))+real(138018537884415820824576.L))+ real(44203717666859661656064.L))+real(2878865064043642617856.L))- real(67336421414647692787712.L))+real(26644422562569001107456.L))+ real(4835410630577492066304.L))+real(364583096642187558912.L))- real(2031623612398046019584.L))/real(424877161474451752386895575.L); _C4x[284] = (_n*(_n*(_n*(_n*(_n*(_n*(_n*((real(28133120349842308071424.L)- real(254148764020971940085760.L)*_n)*_n+ real(51387655305315066314752.L))+real(66169496642467601055744.L))- real(62302477160090634813440.L))-real(5607536798889572040704.L))- real(1531160162804340621312.L))+real(19326267080011914674176.L))- real(8920215537330925076480.L))+real(719566316570030899200.L))/ real(424877161474451752386895575.L); _C4x[285] = (_n*(_n*(_n*(_n*(_n*(_n*(_n*(real(1371367456260262723584.L)* _n+real(98855476420049331290112.L))-real(22542012433755831009280.L))- real(13683990167698557370368.L))-real(26918299871060862959616.L))+ real(22620477115339345231872.L))-real(203981666805014855680.L))- real(558312751139223764992.L))-real(1003367979456785022976.L))/ real(424877161474451752386895575.L); _C4x[286] = (_n*(_n*(_n*(_n*(_n*(_n*(real(13649032136962154168320.L)*_n+ real(7286845967462937133056.L))-real(41512992559738646429696.L))+ real(7958046022913209925632.L))+real(1556136579095989321728.L))+ real(10090599823336240316416.L))-real(6306017721352668053504.L))+ real(694556629570890498048.L))/real(424877161474451752386895575.L); _C4x[287] = (_n*(_n*(_n*(_n*((-real(34318875673746789629952.L)*_n- real(5038999903868073017344.L))*_n-real(9798467436492636553216.L))+ real(16022896306852875730944.L))-real(2158207830123738038272.L))- real(580641655067345158144.L))-real(518939859147967954944.L))/ real(424877161474451752386895575.L); _C4x[288] = (_n*(_n*(_n*((real(11055183047499901304832.L)- real(22707465323068388278272.L)*_n)*_n+real(860451088355301523456.L))+ real(5555287933242279198720.L))-real(4509884598563389833216.L))+ real(619420803280280748032.L))/real(424877161474451752386895575.L); _C4x[289] = (_n*(_n*((real(10831353523562392584192.L)- real(3462497935151689891840.L)*_n)*_n-real(2682702072802950774784.L))- real(424003224041735323648.L))-real(272266502944032030720.L))/ real(424877161474451752386895575.L); _C4x[290] = (_n*((real(675885624548392960.L)-real(31342333790257152.L)* _n)*_n-real(684782710505340928.L))+real(111840867077062656.L))/ real(88571432452460236061475.L); _C4x[291] = ((-real(1814487552229376.L)*_n-real(184753168842752.L))*_n- real(96932582653952.L))/real(294257250672625368975.L); _C4x[292] = (real(6775423107072.L)-real(35958875488256.L)*_n)/ real(6260792567502667425.L); _C4x[293] = -real(133782044672.L)/real(854691993121895775.L); _C4x[294] = (_n*(_n*(_n*(_n*(_n*(_n*(_n*(_n*(_n*(_n*(_n*(_n*(_n*(_n*(_n* (_n*(real(2131964723200.L)*_n+real(24479971409920.L))+ real(451349472870400.L))+real(24011791956705280.L))- real(1226316517788876800.L))+real(19998392443941683200.L))- real(186984969350854737920.L))+real(1189904350414530150400.L))- real(5592550446948291706880.L))+real(20336547079811969843200.L))- real(58858660298301951180800.L))+real(137897432698878857052160.L))- real(263627444865503697305600.L))+real(410703808843100496855040.L))- real(513379761053875621068800.L))+real(491058901877620159283200.L))- real(304456519164124498755584.L))+real(84896529382303946768384.L))/ real(461823001602664948246625625.L); _C4x[295] = (_n*(_n*(_n*(_n*(_n*(_n*(_n*(_n*(_n*(_n*(_n*(_n*(_n*(_n*(_n* (real(1106013134520320.L)*_n+real(55661334993305600.L))- real(2674155356862545920.L))+real(40758301718510305280.L))- real(353481019650652241920.L))+real(2067833778703570042880.L))- real(8839289460222223974400.L))+real(28860589153690604011520.L))- real(73837309397471152046080.L))+real(150021143457997531381760.L))- real(242952722172486709411840.L))+real(311656736440190605721600.L))- real(310802882367751727349760.L))+real(232136935433056802570240.L))- real(121425473918829712113664.L))+real(39284712150209612742656.L))- real(5854933060848548052992.L))/real(153941000534221649415541875.L); _C4x[296] = (_n*(_n*(_n*(_n*(_n*(_n*(_n*(_n*(_n*(_n*(_n*(_n*(_n* ((real(419177000924526673920.L)-real(29293344283479244800.L)*_n)*_n- real(3387238778254707916800.L))+real(18291634271659071897600.L))- real(71341510548198921338880.L))+real(209339536031828095795200.L))- real(471571575583443485982720.L))+real(819026974308263673200640.L))- real(1081582232633420587991040.L))+real(1035792310183770131005440.L))- real(616336860337283058892800.L))+real(44994397208518286376960.L))+ real(335609199376606445961216.L))-real(378561771629292631883776.L))+ real(210708910623851559256064.L))-real(51372315888735647432704.L))/ real(461823001602664948246625625.L); _C4x[297] = (_n*(_n*(_n*(_n*(_n*(_n*(_n*(_n*(_n*(_n*(_n*(_n* ((real(40261740731122287902720.L)-real(8046011327061667348480.L)*_n)*_n- real(143699953344005936250880.L))+real(379276263443149849886720.L))- real(749084754366597745868800.L))+real(1093052863022791267450880.L))- real(1112108645923022071398400.L))+real(628936239153881305579520.L))+ real(132828309812218890813440.L))-real(666598624758214741196800.L))+ real(680790619020651753635840.L))-real(368768436659319757340672.L))+ real(98646132229764678680576.L))-real(3571337468200873885696.L))- real(2901711692913210032128.L))/real(461823001602664948246625625.L); _C4x[298] = (_n*(_n*(_n*(_n*(_n*(_n*(_n*(_n*(_n*(_n*(_n* ((real(573795873750841609420800.L)-real(241588440061028440473600.L)*_n)* _n-real(987956266795360824852480.L))+real(1180739801442315927552000.L))- real(822263252228152775147520.L))-real(17816496431764875509760.L))+ real(756066725788931126722560.L))-real(850710945026132001423360.L))+ real(412628670804891763998720.L))-real(3433399257963429888000.L))- real(81288446987722203070464.L))+real(3779232372794687750144.L))+ real(29005051599847637909504.L))-real(10937220996365176274944.L))/ real(461823001602664948246625625.L); _C4x[299] = (_n*(_n*(_n*(_n*(_n*(_n*(_n*(_n*(_n*(_n* ((real(1070366992642500282286080.L)-real(1141187065421929339944960.L)* _n)*_n-real(343608082124824274534400.L))- real(602909781580891375534080.L))+real(982568553675396753653760.L))- real(576452613681904846110720.L))+real(1636936486667428036608.L))+ real(147182896307962548060160.L))+real(21063555948631589650432.L))- real(116453764391919912222720.L))+real(67170698799763284819968.L))- real(12302923461141056192512.L))-real(343861884607178735616.L))/ real(461823001602664948246625625.L); _C4x[300] = (_n*(_n*(_n*(_n*(_n*(_n*(_n*(_n*(_n*(_n* (real(169684103167341074841600.L)*_n-real(956643098881719848140800.L))+ real(850164249529518391296000.L))-real(167879308527440882565120.L))- real(198598545032521728393216.L))+real(25655495276584715157504.L))+ real(171381322772776380006400.L))-real(110451500410401009434624.L))- real(1576592512742613581824.L))+real(13067890290723662069760.L))+ real(5941846441313263681536.L))-real(4239571090109561307136.L))/ real(461823001602664948246625625.L); _C4x[301] = (_n*(_n*(_n*(_n*(_n*(_n*(_n*(_n*(_n* (real(530604327587900345548800.L)*_n+real(131977168891895076618240.L))- real(152481283706816437420032.L))-real(156530826148027205419008.L))+ real(182740982794412246433792.L))-real(8151355704847011676160.L))- real(31591511062109027827712.L))-real(27756134547413545254912.L))+ real(35806094360712600092672.L))-real(10466361242425030082560.L))+ real(360431905313044561920.L))/real(461823001602664948246625625.L); _C4x[302] = (_n*(_n*(_n*(_n*(_n*(_n*(_n*(_n* (real(15009248562197676687360.L)*_n-real(244298467285940249296896.L))+ real(82996432784741690769408.L))+real(55364604757274391478272.L))+ real(18126670064637664296960.L))-real(65429511443093297037312.L))+ real(19593221547206903857152.L))+real(5635226707924034256896.L))+ real(861250463051326423040.L))-real(1977642842096769433600.L))/ real(461823001602664948246625625.L); _C4x[303] = (_n*(_n*(_n*(_n*(_n*(_n*((real(34865811169337222889472.L)- real(25049300432913906532352.L)*_n)*_n+real(78359610398675725975552.L))- real(49048535289216483983360.L))-real(10666388886959446556672.L))- real(4015240746172931899392.L))+real(18841196561879051272192.L))- real(7791611791309033963520.L))+real(544021638634159472640.L))/ real(461823001602664948246625625.L); _C4x[304] = (_n*(_n*(_n*(_n*(_n*(_n*(real(94061782322562648244224.L)*_n- real(4989223438082088370176.L))-real(10675229986370302771200.L))- real(29550148949190528466944.L))+real(19274738267183420276736.L))+ real(948730317159236894720.L))-real(309505926629945245696.L))- real(1011306433109246869504.L))/real(461823001602664948246625625.L); _C4x[305] = (_n*(_n*(_n*(_n*(_n*(real(5623976056189811163136.L)*_n- real(13014239125021214638080.L))+real(1057831365290118610944.L))+ real(301392554005406679040.L))+real(3402100564685314064384.L))- real(1888115169291661213696.L))+real(185610085070664630272.L))/ real(153941000534221649415541875.L); _C4x[306] = (_n*(_n*(_n*((-real(7204219494115185786880.L)*_n- real(12030549499987697336320.L))*_n+real(14665794240663271768064.L))- real(1176616011237764890624.L))-real(479912745127446052864.L))- real(544003327069043818496.L))/real(461823001602664948246625625.L); _C4x[307] = (_n*(_n*(_n*(real(2658511695217153802240.L)*_n+ real(349127854472439005184.L))+real(1921492373325488324608.L))- real(1378850491311721545728.L))+real(171117741739182391296.L))/ real(153941000534221649415541875.L); _C4x[308] = (_n*(_n*(real(2163491964727590912.L)*_n- real(406434038878830592.L))-real(83541496652890112.L))- real(62479567859744768.L))/real(96273296143978517458125.L); _C4x[309] = (_n*(real(16548080031629312.L)*_n-real(14844900281417728.L))+ real(2205061056823296.L))/real(2238913863813453894375.L); _C4x[310] = (-real(169771903483904.L)*_n-real(99720831696896.L))/ real(279013581812618874375.L); _C4x[311] = real(17725128704.L)/real(20644734133379125.L); _C4x[312] = (_n*(_n*(_n*(_n*(_n*(_n*(_n*(_n*(_n*(_n*(_n*(_n*(_n*(_n*((- real(101130373693440.L)*_n-real(5783393245593600.L))*_n+ real(318472188057354240.L))-real(5618759317869035520.L))+ real(57052017689131745280.L))-real(395968170390045327360.L))+ real(2039836029282051686400.L))-real(8177888081030770851840.L))+ real(26281076226218545643520.L))-real(68987825093823682314240.L))+ real(149570242640390840647680.L))-real(268964032818246687129600.L))+ real(399603705901395078021120.L))-real(482130558207117974568960.L))+ real(449988520993310109597696.L))-real(274992985051467289198592.L))+ real(76114129791031124688896.L))/real(498768841730878144106355675.L); _C4x[313] = (_n*(_n*(_n*(_n*(_n*(_n*(_n*(_n*(_n*(_n*(_n*(_n*(_n*(_n* (real(2241681145882214400.L)*_n-real(37115504492921487360.L))+ real(351320319454127063040.L))-real(2255407036957364060160.L))+ real(10648804381055558615040.L))-real(38702343486057322905600.L))+ real(111280900920525465845760.L))-real(257219043916181510553600.L))+ real(481562073203945703997440.L))-real(730093179498015511019520.L))+ real(888424749518111008358400.L))-real(849993167067850400071680.L))+ real(615042225604755902693376.L))-real(314277697201676901941248.L))+ real(99997449109624468799488.L))-real(14731767056328604778496.L))/ real(498768841730878144106355675.L); _C4x[314] = (_n*(_n*(_n*(_n*(_n*(_n*(_n*(_n*(_n*(_n*(_n*(_n*(_n* (real(1208159862249058467840.L)*_n-real(7201842428551354122240.L))+ real(31264908658453575106560.L))-real(103196829813193844981760.L))+ real(265175248273355990630400.L))-real(535862743249582911651840.L))+ real(849345767923583507496960.L))-real(1034756785032088938086400.L))+ real(914900521908322990817280.L))-real(483619396361886734745600.L))- real(30086811366913097072640.L))+real(339039465302404374724608.L))- real(349604981346582843621376.L))+real(189280885814646315941888.L))- real(45757761311323696660480.L))/real(498768841730878144106355675.L); _C4x[315] = (_n*(_n*(_n*(_n*(_n*(_n*(_n*(_n*(_n*(_n*(_n*(_n* (real(68207297251862139371520.L)*_n-real(204793910887769104711680.L))+ real(469636245011109846712320.L))-real(822769077513134895267840.L))+ real(1075520585575946413670400.L))-real(970210722875698430607360.L))+ real(430741825632232726855680.L))+real(263470288898092034949120.L))- real(671076564935108393435136.L))+real(612166449974084599021568.L))- real(309751817884944675373056.L))+real(76624121978862824325120.L))- real(772181074205594353664.L))-real(2678503101150655414272.L))/ real(498768841730878144106355675.L); _C4x[316] = (_n*(_n*(_n*(_n*(_n*(_n*(_n*(_n*(_n*(_n*(_n* (real(689117160334118501744640.L)*_n-real(1034688320756786606899200.L))+ real(1068813441805893469470720.L))-real(576057451075223483842560.L))- real(237165358523154746572800.L))+real(803665001347227781693440.L))- real(751650018237704810004480.L))+real(305662424875062576283648.L))+ real(32996127128452748804096.L))-real(74622946111822950825984.L))- real(2476991729123855433728.L))+real(28132635482355740442624.L))- real(9996125312177108156416.L))/real(498768841730878144106355675.L); _C4x[317] = (_n*(_n*(_n*(_n*(_n*(_n*(_n*(_n*(_n*(_n* (real(841202287667440684892160.L)*_n-real(31822983215997014507520.L))- real(759798172382769709056000.L))+real(899695869755677715988480.L))- real(409829360079325838180352.L))-real(73794120883102103371776.L))+ real(129906354091232604454912.L))+real(42891890823690012590080.L))- real(112236514082021582045184.L))+real(58190998383169428783104.L))- real(9626186017934468448256.L))-real(453842001546316873728.L))/ real(498768841730878144106355675.L); _C4x[318] = (_n*(_n*(_n*(_n*(_n*(_n*(_n*(_n* ((real(652784685276097192919040.L)-real(986085308861541997608960.L)*_n)* _n-real(11218993662206077304832.L))-real(197016909341114083835904.L))- real(24384803175628869206016.L))+real(173276502711580330295296.L))- real(88510208229772940541952.L))-real(9150026966014239965184.L))+ real(11338122476648465956864.L))+real(6455005389837431734272.L))- real(3985621940807982383104.L))/real(498768841730878144106355675.L); _C4x[319] = (_n*(_n*(_n*(_n*(_n*(_n*(_n*(_n* (real(212798284515636821360640.L)*_n-real(83194912498082880946176.L))- real(191220929987421979803648.L))+real(150003812137954122399744.L))+ real(13784621358545381621760.L))-real(26425052721455829090304.L))- real(31262825828751362752512.L))+real(32988168350057078194176.L))- real(8796240449129393684480.L))+real(207835944042312499200.L))/ real(498768841730878144106355675.L); _C4x[320] = (_n*(_n*(_n*(_n*(_n*(_n*((real(34136227676090491994112.L)- real(231179334978353145839616.L)*_n)*_n+ real(56184392327783535083520.L))+real(31548513937789311516672.L))- real(61608490929288156020736.L))+real(13586951464390546685952.L))+ real(5962442734200002969600.L))+real(1283059378418496831488.L))- real(1912392858015719489536.L))/real(498768841730878144106355675.L); _C4x[321] = (_n*(_n*(_n*(_n*(_n*(_n*(real(12469653863753758801920.L)*_n+ real(84140281217544571846656.L))-real(35861382419886548975616.L))- real(13548577230077042884608.L))-real(6392824084577975795712.L))+ real(18166924514161565106176.L))-real(6806853172165810847744.L))+ real(407750788886380412928.L))/real(498768841730878144106355675.L); _C4x[322] = (_n*(_n*(_n*(_n*(_n*(real(8591822783548697346048.L)*_n- real(5956188858648178458624.L))-real(31027084247774816894976.L))+ real(16060879841227947638784.L))+real(1765484007083546247168.L))- real(72168278273508245504.L))-real(1006690411404196839424.L))/ real(498768841730878144106355675.L); _C4x[323] = (_n*(_n*(_n*((-real(11698685736190165909504.L)*_n- real(208814656795250262016.L))*_n+real(1794788189999726592.L))+ real(3396748311320728698880.L))-real(1694233809987339026432.L))+ real(148744606619390705664.L))/real(166256280576959381368785225.L); _C4x[324] = (_n*(_n*((real(4396636324659424395264.L)- real(4641420323221227438080.L)*_n)*_n-real(131572048073775382528.L))- real(122467555239752892416.L))-real(186285243621640765440.L))/ real(166256280576959381368785225.L); _C4x[325] = (_n*(_n*(real(7834633575818330112.L)*_n+ real(48016071755227463680.L))-real(30789299598841085952.L))+ real(3463955104036552704.L))/real(4055031233584375155336225.L); _C4x[326] = ((-real(3429529750010331136.L)*_n-real(929121136795451392.L))* _n-real(825547048093745152.L))/real(1288808376565576599758025.L); _C4x[327] = (real(233411205660672.L)-real(1720396395053056.L)*_n)/ real(301334668357628384325.L); _C4x[328] = -real(5320214577152.L)/real(14381121797311898475.L); _C4x[329] = (_n*(_n*(_n*(_n*(_n*(_n*(_n*(_n*(_n*(_n*(_n*(_n*(_n* ((real(1565371771807334400.L)-real(82484461043712000.L)*_n)*_n- real(17152002128231792640.L))+real(128922741271544463360.L))- real(722206096937818521600.L))+real(3163382077496229888000.L))- real(11169172104390534758400.L))+real(32431966406822886113280.L))- real(78456742263564187729920.L))+real(159273085798213012684800.L))- real(271775503544569823232000.L))+real(387575500707038704435200.L))- real(453463335827235284189184.L))+real(414275146311301370740736.L))- real(249993622774061171998720.L))+real(68748246262866822299648.L))/ real(535714681859091339966085725.L); _C4x[330] = (_n*(_n*(_n*(_n*(_n*(_n*(_n*(_n*(_n*(_n*(_n*(_n* ((real(796882849483079024640.L)-real(114000123919293480960.L)*_n)*_n- real(4118491001867584143360.L))+real(16487786133727519703040.L))- real(52615905091591864320000.L))+real(136249299448591464529920.L))- real(289201256266363022868480.L))+real(505004876294475869061120.L))- real(723386332535375926394880.L))+real(840882751108578017280000.L))- real(775907246293505777074176.L))+real(546050816551694530248704.L))- real(273352100268780401197056.L))+real(85712099236820973256704.L))- real(12499681138703058599936.L))/real(535714681859091339966085725.L); _C4x[331] = (_n*(_n*(_n*(_n*(_n*(_n*(_n*(_n*(_n*(_n*(_n* ((real(48058037906451852165120.L)-real(13105596121129817210880.L)*_n)* _n-real(138658708703314748375040.L))+real(319135941425592658821120.L))- real(588087695732779379589120.L))+real(861042376467336564572160.L))- real(976303724445006078935040.L))+real(800864636991573149614080.L))- real(371874625913790432018432.L))-real(86417098974058726293504.L))+ real(336205176842650210271232.L))-real(323187478827126067560448.L))+ real(171038107936539149336576.L))-real(41070380884310049685504.L))/ real(535714681859091339966085725.L); _C4x[332] = (_n*(_n*(_n*(_n*(_n*(_n*(_n*(_n*(_n*(_n* ((real(550610802488938038558720.L)-real(270232313099228943482880.L)*_n)* _n-real(869263158552465411932160.L))+real(1028319971570955017256960.L))- real(822700223526103091773440.L))+real(259392162921900996034560.L))+ real(357753221499595668848640.L))-real(657992022141630754586624.L))+ real(547950795055018239066112.L))-real(260878304917920424132608.L))+ real(59650625796137226862592.L))+real(1128572339223560978432.L))- real(2461327174030332002304.L))/real(535714681859091339966085725.L); _C4x[333] = (_n*(_n*(_n*(_n*(_n*(_n*(_n*(_n*(_n* ((real(923787631913692676751360.L)-real(1034710286547361380433920.L)* _n)*_n-real(346245234157604422287360.L))- real(401783047015916277596160.L))+real(808420641413856504053760.L))- real(650455257567164922593280.L))+real(218313846409468265365504.L))+ real(56706846965005117554688.L))-real(66644315841830953418752.L))- real(7453439157493586460672.L))+real(27102034522387626590208.L))- real(9167794051686131040256.L))/real(535714681859091339966085725.L); _C4x[334] = (_n*(_n*(_n*(_n*(_n*(_n*(_n*(_n*(_n* (real(226510654976894781358080.L)*_n-real(838505504646919335444480.L))+ real(786839317157396965490688.L))-real(267569023005024910835712.L))- real(120372785324231963443200.L))+real(107128808817268633894912.L))+ real(59730306053177746653184.L))-real(106598962419766954819584.L))+ real(50397996986643551092736.L))-real(7524579274347948015616.L))- real(519375075239597703168.L))/real(535714681859091339966085725.L); _C4x[335] = (_n*(_n*(_n*(_n*(_n*(_n*(_n*(_n* (real(458442854818227859488768.L)*_n+real(96306110255016387280896.L))- real(172464876600679899070464.L))-real(66052329368078015004672.L))+ real(167910599215137926676480.L))-real(68812287716852351631360.L))- real(14295912336864684539904.L))+real(9528420821397873360896.L))+ real(6801015386323193692160.L))-real(3744921543288857559040.L))/ real(535714681859091339966085725.L); _C4x[336] = (_n*(_n*(_n*(_n*(_n*(_n*((-real(11512968925967443558400.L)*_n- real(206825135944362465689600.L))*_n+real(115844139308050768986112.L))+ real(28946038594593687076864.L))-real(20089451415499968610304.L))- real(33662456270784521306112.L))+real(30237558827368692318208.L))- real(7403759247694499938304.L))+real(95364480585493905408.L))/ real(535714681859091339966085725.L); _C4x[337] = (_n*(_n*(_n*(_n*(_n*((real(49947882271217396219904.L)- real(5203944850077889069056.L)*_n)*_n+real(42407517492739936616448.L))- real(56575356892381181902848.L))+real(8581541322318195720192.L))+ real(5963407710798869430272.L))+real(1634138971069032169472.L))- real(1841052091594565484544.L))/real(535714681859091339966085725.L); _C4x[338] = (_n*(_n*(_n*(_n*(_n*(real(28145849041027147497472.L)*_n- real(7883630470704981344256.L))-real(4911902270365057941504.L))- real(2844621509791940870144.L))+real(5788871683336942125056.L))- real(1983150924961272561664.L))+real(100445763893888811008.L))/ real(178571560619697113322028575.L); _C4x[339] = (_n*(_n*(_n*((-real(450597459332782096384.L)*_n- real(31486405223959270260736.L))*_n+real(13073372565100757516288.L))+ real(2317888471320775098368.L))+real(146565013145265373184.L))- real(993300730654811488256.L))/real(535714681859091339966085725.L); _C4x[340] = (_n*(_n*((-real(1162207852366183530496.L)*_n- real(336827775939520757760.L))*_n+real(3355305437742864793600.L))- real(1519433631680467828736.L))+real(118976779410317770752.L))/ real(178571560619697113322028575.L); _C4x[341] = (_n*(_n*(real(1296975958388225605632.L)*_n+ real(24071140691780042752.L))-real(27946396176690970624.L))- real(62889101902200438784.L))/real(59523853539899037774009525.L); _C4x[342] = (_n*(real(15460645461047640064.L)*_n- real(8947273598989500416.L))+real(914444779889098752.L))/ real(1384275663718582273814175.L); _C4x[343] = (-real(14832869272715264.L)*_n-real(16076005412175872.L))/ real(25846223855796368985675.L); _C4x[344] = real(11005853696.L)/real(17940058163291825.L); _C4x[345] = (_n*(_n*(_n*(_n*(_n*(_n*(_n*(_n*(_n*(_n*(_n*(_n*(_n* (real(5091307533222543360.L)*_n-real(41198029324953845760.L))+ real(249300895402284810240.L))-real(1184179253160852848640.L))+ real(4554535589080203264000.L))-real(14483423173275046379520.L))+ real(38622461795400123678720.L))-real(87154634183041068564480.L))+ real(167194604351140009082880.L))-real(272599898398597840896000.L))+ real(375097460196470629072896.L))-real(427194329668202660888576.L))+ real(383001812805974799417344.L))-real(228565597964855928684544.L))+ real(62498405693515292999680.L))/real(572660521987304535825815775.L); _C4x[346] = (_n*(_n*(_n*(_n*(_n*(_n*(_n*(_n*(_n*(_n*(_n*(_n* (real(514187426110352916480.L)*_n-real(2247933497525686763520.L))+ real(7881743693103004385280.L))-real(22590496521837808189440.L))+ real(53561338527583190384640.L))-real(105703579650568759541760.L))+ real(173801078079300556554240.L))-real(236949245019376960143360.L))+ real(264603634712238970896384.L))-real(236495556299583549079552.L))+ real(162398517249812954349568.L))-real(79831643364024523948032.L))+ real(24709794374579019317248.L))-real(3571337468200873885696.L))/ real(190886840662434845275271925.L); _C4x[347] = (_n*(_n*(_n*(_n*(_n*(_n*(_n*(_n*(_n*(_n*(_n* (real(68255699287613405921280.L)*_n-real(176108899047462320209920.L))+ real(369147506618944727285760.L))-real(628108811718068073922560.L))+ real(857556726199951703408640.L))-real(911129946124723798671360.L))+ real(695535740765103257026560.L))-real(278250385181479415054336.L))- real(128374707708691409272832.L))+real(329357279394947502440448.L))- real(299229583097036172951552.L))+real(155386591547833448398848.L))- real(37112952879006378622976.L))/real(572660521987304535825815775.L); _C4x[348] = (_n*(_n*(_n*(_n*(_n*(_n*(_n*(_n*(_n*(_n* (real(618578444832325364613120.L)*_n-real(890387086357713345576960.L))+ real(959846801282704563240960.L))-real(677618176913105265623040.L))+ real(114598368788199443005440.L))+real(423167842280036137697280.L))- real(633801719329703113785344.L))+real(489155075033436868575232.L))- real(220332144402742995058688.L))+real(46463340388623300165632.L))+ real(2410711646300392128512.L))-real(2257144678447121956864.L))/ real(572660521987304535825815775.L); _C4x[349] = (_n*(_n*(_n*(_n*(_n*(_n*(_n*(_n*(_n* (real(761367907818236144517120.L)*_n-real(141932181921238163128320.L))- real(518471155546357606907904.L))+real(783900067938426616283136.L))- real(553324818027658440867840.L))+real(148079874353063859847168.L))+ real(71265077790889964732416.L))-real(58293930961292620726272.L))- real(11359238777021883482112.L))+real(25991697839449845006336.L))- real(8436766389561498533888.L))/real(572660521987304535825815775.L); _C4x[350] = (_n*(_n*(_n*(_n*(_n*(_n*(_n* ((real(662012426056248019910656.L)-real(856864870222817214332928.L)*_n)* _n-real(151202452659623967064064.L))-real(145443399821504500727808.L))+ real(82556297742728581611520.L))+real(72160251650795823431680.L))- real(100190891075416646221824.L))+real(43663490536105119318016.L))- real(5865058745918664212480.L))-real(555004094218279845888.L))/ real(572660521987304535825815775.L); _C4x[351] = (_n*(_n*(_n*(_n*(_n*(_n*(_n*(real(162244546902089766273024.L)* _n-real(135698369282461491265536.L))-real(98336804674514213404672.L))+ real(157744953895228324970496.L))-real(51631097725980996796416.L))- real(17599659185393897570304.L))+real(7755604277847765549056.L))+ real(7016232510410146709504.L))-real(3519321627372776587264.L))/ real(572660521987304535825815775.L); _C4x[352] = (_n*(_n*(_n*(_n*(_n*((real(83244152479985965203456.L)- real(207256316991167648497664.L)*_n)*_n+ real(38488841588026346831872.L))-real(13386406132456695529472.L))- real(35127278841657192087552.L))+real(27615403122651371143168.L))- real(6240092707521290043392.L))+real(12356984641708621824.L))/ real(572660521987304535825815775.L); _C4x[353] = (_n*(_n*(_n*(_n*(_n*(real(39426942372718181351424.L)*_n+ real(50524659025021289627648.L))-real(50882305733861696339968.L))+ real(4486579367125494792192.L))+real(5745527201912053563392.L))+ real(1921372350956712230912.L))-real(1767071000376643682304.L))/ real(572660521987304535825815775.L); _C4x[354] = (_n*(_n*(_n*((-real(12922609861994402021376.L)*_n- real(14663330997699015081984.L))*_n-real(10377016441700863705088.L))+ real(16490114063764429996032.L))-real(5203644908636423061504.L))+ real(217824752403331678208.L))/real(572660521987304535825815775.L); _C4x[355] = (_n*(_n*((real(10363105915761611243520.L)- real(31108224082047813025792.L)*_n)*_n+real(2665258414019276963840.L))+ real(343454172582539952128.L))-real(973879596736504135680.L))/ real(572660521987304535825815775.L); _C4x[356] = (_n*((real(1095127986104170446848.L)- real(228080158859782520832.L)*_n)*_n-real(454138721074839289856.L))+ real(31606851391048384512.L))/real(63628946887478281758423975.L); _C4x[357] = (_n*(real(76084294790401753088.L)*_n- real(15295746883276767232.L))-real(63038841724082323456.L))/ real(63628946887478281758423975.L); _C4x[358] = (real(14181714112806912.L)-real(152607815888797696.L)*_n)/ real(27628722052747842708825.L); _C4x[359] = -real(54965112406016.L)/real(91993525147884048975.L); _C4x[360] = (_n*(_n*(_n*(_n*(_n*(_n*(_n*(_n*(_n*(_n*(_n* ((real(430994768322594078720.L)-real(84197065396353761280.L)*_n)*_n- real(1793048747701048442880.L))+real(6194168401149076439040.L))- real(18035960932757604925440.L))+real(44720745236779090575360.L))- real(95031583628155567472640.L))+real(173535935320979731906560.L))- real(271872965336201579986944.L))+real(362497287114935439982592.L))- real(403121983084712687566848.L))+real(355440888311252047101952.L))- real(210033252183921664196608.L))+real(57141399491213982171136.L))/ real(609606362115517731685545825.L); _C4x[361] = (_n*(_n*(_n*(_n*(_n*(_n*(_n*(_n*(_n*(_n* ((real(31970970891211914608640.L)-real(10176476723924655144960.L)*_n)* _n-real(83688392887351608606720.L))+real(183984060806886189957120.L))- real(340890208974693445140480.L))+real(531787992272133968363520.L))- real(694143741283918927626240.L))+real(748132698939334844219392.L))- real(649995135516435961348096.L))+real(436690280250806542270464.L))- real(211215428087395894951936.L))+real(64625616056591281291264.L))- real(9266172890467132243968.L))/real(609606362115517731685545825.L); _C4x[362] = (_n*(_n*(_n*(_n*(_n*(_n*(_n*(_n*(_n* ((real(413825184882267751710720.L)-real(214034860114736295444480.L)*_n)* _n-real(656543496537894058721280.L))+real(842133421975364865884160.L))- real(842855810924450282471424.L))+real(599646862218377023193088.L))- real(200074490509092341153792.L))-real(159298739193669591498752.L))+ real(320012267824187116093440.L))-real(277563905150600783855616.L))+ real(141861108416907690639360.L))-real(33738373088367507144704.L))/ real(609606362115517731685545825.L); _C4x[363] = (_n*(_n*(_n*(_n*(_n*(_n*(_n*(_n* ((real(877392490929897477242880.L)-real(889289452672089367511040.L)*_n)* _n-real(540149494276991068667904.L))-real(5464164240765975789568.L))+ real(466041248043616759185408.L))-real(602995853494487514873856.L))+ real(436048845159616311459840.L))-real(186604799267254478831616.L))+ real(36143424521723768209408.L))+real(3262438927417256968192.L))- real(2068807831079903821824.L))/real(609606362115517731685545825.L); _C4x[364] = (_n*(_n*(_n*(_n*(_n*(_n*(_n*(_n* (real(32795003990588742696960.L)*_n-real(595091362362469753290752.L))+ real(740478006614137644253184.L))-real(463614711290422458580992.L))+ real(92322771143285224243200.L))+real(79305650728527359639552.L))- real(50114832320037157601280.L))-real(14384992487995191853056.L))+ real(24853186435830339600384.L))-real(7789531146923225907200.L))/ real(609606362115517731685545825.L); _C4x[365] = (_n*(_n*(_n*(_n*(_n*(_n*(_n*(real(537149830091282443141120.L)* _n-real(59380568619727814918144.L))-real(155035323673074726862848.L))+ real(58420237132999633666048.L))+real(80876640692613733679104.L))- real(93458624460192913293312.L))+real(37856146464015973875712.L))- real(4547760312161134444544.L))-real(570468604583495073792.L))/ real(609606362115517731685545825.L); _C4x[366] = (_n*(_n*(_n*(_n*(_n*((-real(94150496146393625788416.L)*_n- real(121614752059864419139584.L))*_n+real(144694292247282918096896.L))- real(36961746472760617467904.L))-real(19526442990342349258752.L))+ real(6085090205128816852992.L))+real(7130102002019737796608.L))- real(3309332099903740968960.L))/real(609606362115517731685545825.L); _C4x[367] = (_n*(_n*(_n*(_n*(_n*(real(53913608561960329150464.L)*_n+ real(43584033194830477656064.L))-real(6826182834845181280256.L))- real(35830854175750795296768.L))+real(25155778723711209701376.L))- real(5265097474396068511744.L))-real(48822101619058409472.L))/ real(609606362115517731685545825.L); _C4x[368] = (_n*(_n*(_n*(_n*(real(56042554411652231462912.L)*_n- real(44939383802842058850304.L))+real(1192635094428580577280.L))+ real(5386675108318181064704.L))+real(2152545577261133201408.L))- real(1692733009650165743616.L))/real(609606362115517731685545825.L); _C4x[369] = (_n*(_n*((-real(13699127493087568330752.L)*_n- real(11904434636260707926016.L))*_n+real(15575442621543982563328.L))- real(4554973193376618250240.L))+real(152019767703424204800.L))/ real(609606362115517731685545825.L); _C4x[370] = (_n*(_n*(real(7950434773662726881280.L)*_n+ real(2855725742065350344704.L))+real(517630575411575390208.L))- real(950421023617361903616.L))/real(609606362115517731685545825.L); _C4x[371] = (_n*(real(152087537775491940352.L)*_n- real(58176974110576345088.L))+real(3577681766573408256.L))/ real(9676291462151075106119775.L); _C4x[372] = (-real(4223018003857408.L)*_n-real(81684179116359680.L))/ real(88233660749097949295925.L); _C4x[373] = real(1187558457344.L)/real(2967533069286582225.L); _C4x[374] = (_n*(_n*(_n*(_n*(_n*(_n*(_n*(_n*(_n*(_n*(_n* (real(684808837435647590400.L)*_n-real(2552815166218441850880.L))+ real(8054336620689201561600.L))-real(21746708875860844216320.L))+ real(50627258758617838387200.L))-real(102079961953517489356800.L))+ real(178494104901579152818176.L))-real(269944788277079582965760.L))+ real(349997380662696286879744.L))-real(381045535398903215554560.L))+ real(331009252972784611491840.L))-real(193876848169773843873792.L))+ real(52508313045980416049152.L))/real(646552202243730927545275875.L); _C4x[375] = (_n*(_n*(_n*(_n*(_n*(_n*(_n*(_n*(_n*(_n* (real(41268460411269005967360.L)*_n-real(99928379768550771916800.L))+ real(205730769682747034173440.L))-real(360674194413173090549760.L))+ real(537133203577301083619328.L))-real(674570313658546050301952.L))+ real(704402023174814281236480.L))-real(596701093731048439676928.L))+ real(393105562445198468841472.L))-real(187388626932101321588736.L))+ real(56744443366763076255744.L))-real(8078202007073910161408.L))/ real(646552202243730927545275875.L); _C4x[376] = (_n*(_n*(_n*(_n*(_n*(_n*(_n*(_n*(_n* (real(452376341730091125964800.L)*_n-real(674450171758867308871680.L))+ real(817648238648469693136896.L))-real(774073110235378693963776.L))+ real(513239718143080230027264.L))-real(134960678833126406881280.L))- real(181737936974692298522624.L))+real(309195446049300686045184.L))- real(257989271586097242046464.L))+real(130094334307908370563072.L))- real(30835088148952852201472.L))/real(646552202243730927545275875.L); _C4x[377] = (_n*(_n*(_n*(_n*(_n*(_n*(_n*(_n* (real(786923868284873405890560.L)*_n-real(413347858199903649923072.L))- real(103348181187335221673984.L))+real(491556374863983069364224.L))- real(568660700939824482222080.L))+real(388493395807836030631936.L))- real(158460873658538353754112.L))+real(28015014648058300334080.L))+ real(3812288184847131738112.L))-real(1896979938133067956224.L))/ real(646552202243730927545275875.L); _C4x[378] = (_n*(_n*(_n*(_n*(_n*(_n*((real(685831146636741636521984.L)- real(639377792612952067538944.L)*_n)*_n- real(382867698419535095791616.L))+real(48569158297785152307200.L))+ real(82759154214861239484416.L))-real(42404168936857687556096.L))- real(16695139297225389113344.L))+real(23719951015907491315712.L))- real(7214480465194481876992.L))/real(646552202243730927545275875.L); _C4x[379] = (_n*(_n*(_n*(_n*(_n*(_n*(real(10632884446466437808128.L)*_n- real(153880538970079591661568.L))+real(35977262383266109849600.L))+ real(86562091177696389234688.L))-real(86700573847391418974208.L))+ real(32852036501153549123584.L))-real(3497197262858948182016.L))- real(572369679143757938688.L))/real(646552202243730927545275875.L); _C4x[380] = (_n*(_n*(_n*(_n*((real(130175705428439072768000.L)- real(136933609611924112146432.L)*_n)*_n- real(24646700522200039948288.L))-real(20438808531519984893952.L))+ real(4550027383744652902400.L))+real(7166116325514310320128.L))- real(3114691312233750724608.L))/real(646552202243730927545275875.L); _C4x[381] = (_n*(_n*(_n*(_n*(real(45293223486842050969600.L)*_n- real(712846732076804734976.L))-real(35931867530174037753856.L))+ real(22874573958974166532096.L))-real(4445918678380099665920.L))- real(93706058264540610560.L))/real(646552202243730927545275875.L); _C4x[382] = (_n*(_n*((-real(5576612242752010190848.L)*_n- real(201813586968620040192.L))*_n+real(706097888679988035584.L))+ real(333624816480246824960.L))-real(231361244667523891200.L))/ real(92364600320532989649325125.L); _C4x[383] = (_n*((real(697656587238061899776.L)- real(624972980070106791936.L)*_n)*_n-real(190024448782494597120.L))+ real(4762250782797987840.L))/real(30788200106844329883108375.L); _C4x[384] = (_n*(real(139418120787643596800.L)*_n+ real(31886793471382519808.L))-real(44017945317094719488.L))/ real(30788200106844329883108375.L); _C4x[385] = (real(1220363417550848.L)-real(22658460747300864.L)*_n)/ real(4456245492378684307875.L); _C4x[386] = -real(602006238527488.L)/real(697370271282346822875.L); _C4x[387] = (_n*(_n*(_n*(_n*(_n*(_n*(_n*(_n*(_n* ((real(10102049320864422297600.L)-real(3461193947640433213440.L)*_n)*_n- real(25543753282757182095360.L))+real(56270297086653502586880.L))- real(108320321891807992479744.L))+real(182253240008438844489728.L))- real(267095265529608651407360.L))+real(337746271250343843069952.L))- real(360774426108321832370176.L))+real(309235222378561570603008.L))- real(179690737328083074809856.L))+real(48469212042443460968448.L))/ real(683498042371944123405005925.L); _C4x[388] = (_n*(_n*(_n*(_n*(_n*(_n*(_n*(_n* ((real(75219482769268754350080.L)-real(38704807234037927116800.L)*_n)* _n-real(125571610340742553141248.L))+real(179439725154106169360384.L))- real(217707839073190447939584.L))+real(220974451178196151828480.L))- real(182972005946382935392256.L))+real(118430510698172516401152.L))- real(55718058086227310018560.L))+real(16715417425868193005568.L))- real(2364351806948461510656.L))/real(227832680790648041135001975.L); _C4x[389] = (_n*(_n*(_n*(_n*(_n*(_n*(_n* ((real(786548209383195382120448.L)-real(683101994568560085565440.L)*_n)* _n-real(706579164741323777376256.L))+real(435947710988690745458688.L))- real(80835957312130184642560.L))-real(197642203038780277915648.L))+ real(297600478942318968176640.L))-real(240298944129325015760896.L))+ real(119793824885388716539904.L))-real(28317236757638550650880.L))/ real(683498042371944123405005925.L); _C4x[390] = (_n*(_n*(_n*(_n*(_n*(_n*((-real(298745284339035784871936.L)* _n-real(181844661380492338135040.L))*_n+ real(503875109365855117377536.L))-real(532888963131919415902208.L))+ real(346139420624792697438208.L))-real(134895879266904234262528.L))+ real(21575928875943341326336.L))+real(4149217091527565639680.L))- real(1741189315194603438080.L))/real(683498042371944123405005925.L); _C4x[391] = (_n*(_n*(_n*(_n*(_n*(_n*(real(625481215297630861524992.L)*_n- real(311507795764883547488256.L))+real(14633262856967473332224.L))+ real(83032103549410501197824.L))-real(35308470948718134165504.L))- real(18427405318254776811520.L))+real(22613233148825232736256.L))- real(6701726534440505573376.L))/real(683498042371944123405005925.L); _C4x[392] = (_n*(_n*(_n*(_n*((real(15856161641610625417216.L)- real(145577684510862143913984.L)*_n)*_n+ real(89830906421704545796096.L))-real(80109879564411900788736.L))+ real(28539215316375146856448.L))-real(2655897422812122447872.L))- real(565224981345846951936.L))/real(683498042371944123405005925.L); _C4x[393] = (_n*(_n*(_n*(_n*(real(115195355797583978037248.L)*_n- real(14454755071549901897728.L))-real(20615553181563458945024.L))+ real(3163626486103896227840.L))+real(7142848699488014434304.L))- real(2934711860625154244608.L))/real(683498042371944123405005925.L); _C4x[394] = (_n*(_n*(_n*(real(4790677141391228796928.L)*_n- real(35567790313061593645056.L))+real(20775776885963204067328.L))- real(3755713909978132643840.L))-real(126347227058877235200.L))/ real(683498042371944123405005925.L); _C4x[395] = (_n*((real(4453118791104489062400.L)- real(3436000960308748222464.L)*_n)*_n+real(2477022964560338878464.L))- real(1548407882056757936128.L))/real(683498042371944123405005925.L); _C4x[396] = (_n*(real(1962353802634460135424.L)*_n- real(499842059402672603136.L))+real(8401322357326610432.L))/ real(97642577481706303343572275.L); _C4x[397] = (real(16341584613992300544.L)*_n- real(18302119760210427904.L))/real(13948939640243757620510325.L); _C4x[398] = real(601295421440.L)/real(2991617395646009559.L); _C4x[399] = (_n*(_n*(_n*(_n*(_n*(_n*(_n*(_n*(_n* (real(12302261468031614976000.L)*_n-real(29364963243258072268800.L))+ real(61601167336968044937216.L))-real(113791045219677083009024.L))+ real(184980516859573583216640.L))-real(263547510579499997593600.L))+ real(325840558534654542479360.L))-real(342132586461387269603328.L))+ real(289733902048382012096512.L))-real(167154174258681930055680.L))+ real(44922684332020768702464.L))/real(720443882500157319264735975.L); _C4x[400] = (_n*(_n*(_n*(_n*(_n*(_n*(_n*(_n* (real(243623288494230249406464.L)*_n-real(389328658348144555196416.L))+ real(536118971670202735919104.L))-real(630561151899027369885696.L))+ real(623834587649588330496000.L))-real(506011220312639995379712.L))+ real(322317957901847466344448.L))-real(149846011534024084815872.L))+ real(44574446468981848014848.L))-real(6268281534700572377088.L))/ real(720443882500157319264735975.L); _C4x[401] = (_n*(_n*(_n*(_n*(_n*(_n*(_n*(real(750855312428744679882752.L)* _n-real(641572543317776256729088.L))+real(367180187548114218909696.L))- real(35929255816224116310016.L))-real(208507853106049479344128.L))+ real(285695264331922768134144.L))-real(224294821062004405436416.L))+ real(110724821813907037356032.L))-real(26117839727919051571200.L))/ real(720443882500157319264735975.L); _C4x[402] = (_n*(_n*(_n*(_n*(_n*((real(506293824663714237775872.L)- real(243700933293988116430848.L)*_n)*_n- real(497074568318784553091072.L))+real(308542884215791040856064.L))- real(115095479601963567415296.L))+real(16449429199352500322304.L))+ real(4335508471147170627584.L))-real(1600412306732061032448.L))/ real(720443882500157319264735975.L); _C4x[403] = (_n*(_n*(_n*(_n*((-real(249298506016595411730432.L)*_n- real(11351149548067983720448.L))*_n+real(81144543681383241875456.L))- real(28883265100711465058304.L))-real(19695196067752600141824.L))+ real(21546042558357308440576.L))-real(6242878164752444424192.L))/ real(720443882500157319264735975.L); _C4x[404] = (_n*(_n*(_n*((real(91209757380984898060288.L)- real(1707339911901640392704.L)*_n)*_n-real(73805944053491853950976.L))+ real(24819101837534087348224.L))-real(1979789974026208673792.L))- real(552149717401957564416.L))/real(720443882500157319264735975.L); _C4x[405] = (_n*(_n*((-real(6128787188242108645376.L)*_n- real(20268943947737811910656.L))*_n+real(1927072923661279166464.L))+ real(7074899618938637778944.L))-real(2768490365032270397440.L))/ real(720443882500157319264735975.L); _C4x[406] = (_n*((real(18855843921432353439744.L)- real(34853732511257991315456.L)*_n)*_n-real(3172551820670635343872.L))- real(149741728961717600256.L))/real(720443882500157319264735975.L); _C4x[407] = (_n*(real(3945617037685545762816.L)*_n+ real(2583909558702116438016.L))-real(1479950648782536835072.L))/ real(720443882500157319264735975.L); _C4x[408] = (real(23195812695638016.L)-real(2724235770884784128.L)*_n)/ real(639258103371923087191425.L); _C4x[409] = -real(1197385342517248.L)/real(993297829878681822495.L); _C4x[410] = (_n*(_n*(_n*(_n*(_n*(_n*(_n*((real(66589585784217811288064.L)- real(33158338822878951112704.L)*_n)*_n- real(118540943658973948542976.L))+real(186824897379581061758976.L))- real(259479024138307030220800.L))+real(314340303527549088038912.L))- real(324959908376452773445632.L))+real(272188641204208305963008.L))- real(156010562641436468051968.L))+real(41788543564670482513920.L))/ real(757389722628370515124466025.L); _C4x[411] = (_n*(_n*(_n*(_n*(_n*(_n*((real(531198236319819837210624.L)- real(398859949671889162469376.L)*_n)*_n- real(607454052298520879169536.L))+real(587163963192969051242496.L))- real(467422909274009760694272.L))+real(293427850902015676776448.L))- real(134942701164455685783552.L))+real(39832484078664630140928.L))- real(5571805808622731001856.L))/real(757389722628370515124466025.L); _C4x[412] = (_n*(_n*(_n*(_n*(_n*((real(306240140184498280071168.L)- real(579809277507653160927232.L)*_n)*_n+real(1257057495520674578432.L))- real(215487041323008192937984.L))+real(273792953769367475060736.L))- real(209793979769261249265664.L))+real(102697356910298604240896.L))- real(24184008190617811156992.L))/real(757389722628370515124466025.L); _C4x[413] = (_n*(_n*(_n*(_n*(_n*(real(501397294896890083540992.L)*_n- real(462122628304144865165312.L))+real(275231659927247534424064.L))- real(98399742034279384743936.L))+real(12350304583527310557184.L))+ real(4415205318043258322944.L))-real(1473395456991421267968.L))/ real(757389722628370515124466025.L); _C4x[414] = (_n*(_n*(_n*((real(77833008168170371940352.L)- real(30943485290391929880576.L)*_n)*_n-real(23130375511799578492928.L))- real(20590958552582778257408.L))+real(20525847732382766989312.L))- real(5830820561035016011776.L))/real(757389722628370515124466025.L); _C4x[415] = (_n*(_n*(_n*(real(91136767717745964875776.L)*_n- real(67857240372806990954496.L))+real(21606218822048907526144.L))- real(1434843986948054319104.L))-real(535303420460773933056.L))/ real(757389722628370515124466025.L); _C4x[416] = (_n*((real(834578222963094454272.L)- real(19559284417295441461248.L)*_n)*_n+real(6973703617663878561792.L))- real(2615033992351722766336.L))/real(757389722628370515124466025.L); _C4x[417] = (_n*(real(743768959490749104128.L)*_n- real(116456150644453015552.L))-real(7222774071354720256.L))/ real(32929987940363935440194175.L); _C4x[418] = (real(16531983056844619776.L)*_n-real(8785618937002852352.L))/ real(4704283991480562205742025.L); _C4x[419] = real(549755813888.L)/real(1740393633548117723175.L); _C4x[420] = (_n*(_n*(_n*(_n*(_n*(_n*(_n*(real(71219613512572130557952.L)* _n-real(122624092620436692533248.L))+real(187917440639110775570432.L))- real(255030812295936052559872.L))+real(303279884892464494936064.L))- real(309112190371165735223296.L))+real(256336938356576463355904.L))- real(146052441621770310516736.L))+real(39002640660359117012992.L))/ real(794335562756583710984196075.L); _C4x[421] = (_n*(_n*(_n*(_n*(_n*(_n*(real(174707351035972396515328.L)*_n- real(194742529282177752891392.L))+real(184289690819822922760192.L))- real(144217008200612487102464.L))+real(89333849771326314643456.L))- real(40677270655763159711744.L))+real(11922648295654719225856.L))- real(1659686836611026255872.L))/real(264778520918861236994732025.L); _C4x[422] = (_n*(_n*(_n*(_n*(_n*(real(252397644512405722497024.L)*_n+ real(31981428882762287284224.L))-real(219470015896624149037056.L))+ real(262100072987028269039616.L))-real(196631068090212320018432.L))+ real(95556519428409146736640.L))-real(22473514614110528995328.L))/ real(794335562756583710984196075.L); _C4x[423] = (_n*(_n*(_n*((real(245742594093529094422528.L)- real(428598209718128243376128.L)*_n)*_n- real(84273202879125803499520.L))+real(9060779635038981455872.L))+ real(4419716460320395362304.L))-real(1358831239578295205888.L))/ real(794335562756583710984196075.L); _C4x[424] = (_n*(_n*(_n*(real(73626674659528185741312.L)*_n- real(18021206944965917147136.L))-real(21189610875612953575424.L))+ real(19556403257026017230848.L))-real(5459515958774328197120.L))/ real(794335562756583710984196075.L); _C4x[425] = (_n*((real(818572051655419756544.L)- real(2708590336148043202560.L)*_n)*_n-real(43243651582941724672.L))- real(22442932828756770816.L))/real(34536328815503639608008525.L); _C4x[426] = ((real(297747462928717578240.L)-real(5366082936477057024.L)* _n)*_n-real(107536332602428358656.L))/ real(34536328815503639608008525.L); _C4x[427] = (-real(98209856336580050944.L)*_n- real(7703147677873078272.L))/real(34536328815503639608008525.L); _C4x[428] = -real(1109241755926003712.L)/real(651628845575540369962425.L); _C4x[429] = (_n*(_n*(_n*(_n*(_n*((real(188372446548648574058496.L)- real(126096309848139072798720.L)*_n)*_n- real(250314737530861843906560.L))+real(292675693113007694413824.L))- real(294460300997843107184640.L))+real(241959627176522243112960.L))- real(137110455400029271097344.L))+real(36513110405442577629184.L))/ real(831281402884796906843926125.L); _C4x[430] = (_n*(_n*(_n*(_n*((real(520863521641793354465280.L)- real(561194652455965003087872.L)*_n)*_n- real(401254993895625439838208.L))+real(245528842946193068654592.L))- real(110784030556294460997632.L))+real(32261283623536299081728.L))- real(4470993110870519709696.L))/real(831281402884796906843926125.L); _C4x[431] = (_n*(_n*(_n*(_n*(real(57297393616934582353920.L)*_n- real(221146988973022337040384.L))+real(250749421703545132941312.L))- real(184658496486690617556992.L))+real(89175057563171090857984.L))- real(20952301048981455110144.L))/real(831281402884796906843926125.L); _C4x[432] = (_n*(_n*(_n*(real(9549604208874704863232.L)*_n- real(3142626702968525684736.L))+real(278836078435249422336.L))+ real(190069461276707258368.L))-real(54584821553358176256.L))/ real(36142669690643343775822875.L); _C4x[433] = (_n*((-real(587443175818952441856.L)*_n- real(937028772502704226304.L))*_n+real(810391095806533828608.L))- real(222775242785950793728.L))/real(36142669690643343775822875.L); _C4x[434] = (_n*(real(713879932158309564416.L)*_n- real(27755262291019300864.L))-real(21558511513897009152.L))/ real(36142669690643343775822875.L); _C4x[435] = (real(291535807171969155072.L)*_n- real(101844234847588974592.L))/real(36142669690643343775822875.L); _C4x[436] = -real(2014305302085632.L)/real(9092495519658702836685.L); _C4x[437] = (_n*(_n*(_n*(_n*(_n*(real(8186477613872805052416.L)*_n- real(10670408855688912568320.L))+real(12283982877768699346944.L))- real(12212564372665392955392.L))+real(9950978377727357222912.L))- real(5610658021484573753344.L))+real(1490331036956839903232.L))/ real(37749010565783047943637225.L); _C4x[438] = (_n*(_n*(_n*(_n*(real(21349350625296808673280.L)*_n- real(16210790175313206706176.L))+real(9808141367520744439808.L))- real(4388439207198911889408.L))+real(1270337665241790283776.L))- real(175333063171392929792.L))/real(37749010565783047943637225.L); _C4x[439] = (_n*(_n*((real(10427075990122364141568.L)- real(9611077358625893646336.L)*_n)*_n-real(7554153085891571089408.L))+ real(3628161362092082855936.L))-real(851854033332710932480.L))/ real(37749010565783047943637225.L); _C4x[440] = (_n*((real(185985153811519373312.L)- real(2698532126922450665472.L)*_n)*_n+real(186397233177423773696.L))- real(50524793503934840832.L))/real(37749010565783047943637225.L); _C4x[441] = ((real(772751830912226820096.L)-real(944604126143104155648.L)* _n)*_n-real(209538601630667112448.L))/ real(37749010565783047943637225.L); _C4x[442] = (-real(3042181548288770048.L)*_n-real(4130451769182388224.L))/ real(7549802113156609588727445.L); _C4x[443] = -real(19316123519745523712.L)/ real(7549802113156609588727445.L); _C4x[444] = (_n*(_n*(_n*((real(11862734745972926054400.L)- real(10452819550754832384000.L)*_n)*_n-real(11665022500206710620160.L))+ real(9431294787401170288640.L))-real(5293073605174126182400.L))+ real(1402664505371143438336.L))/real(39355351440922752111451575.L); _C4x[445] = (_n*(_n*((real(3011956765289579806720.L)- real(5030318121789612359680.L)*_n)*_n-real(1337197542359779246080.L))+ real(384950807649027358720.L))-real(52930736051741261824.L))/ real(13118450480307584037150525.L); _C4x[446] = (_n*(_n*(real(9972455762875310407680.L)*_n- real(7120731442828038635520.L))+real(3403775562370347171840.L))- real(798772925871731769344.L))/real(39355351440922752111451575.L); _C4x[447] = (_n*(real(22195990763495489536.L)*_n+ real(36331664093904633856.L))-real(9370513080930271232.L))/ real(7871070288184550422290315.L); _C4x[448] = (real(147460236699085307904.L)*_n- real(39499524219294711808.L))/real(7871070288184550422290315.L); _C4x[449] = -real(101260622871658496.L)/real(201822315081655139033085.L); _C4x[450] = (_n*(_n*(_n*(real(2292165577145369755648.L)*_n- real(2231203726689375879168.L))+real(1791034284009158868992.L))- real(1000872099887471132672.L))+real(264653680258706309120.L))/ real(8192338463212491255853185.L); _C4x[451] = (_n*(_n*(real(1669110583097171116032.L)*_n- real(735699027927989485568.L))+real(210709915765783396352.L))- real(28871310573677051904.L))/real(8192338463212491255853185.L); _C4x[452] = ((real(640165294932485996544.L)- real(1344790611331525902336.L)*_n)*_n-real(150181466405179752448.L))/ real(8192338463212491255853185.L); _C4x[453] = (real(2711166975677038592.L)*_n-real(669628969594650624.L))/ real(630179881785576250450245.L); _C4x[454] = -real(260856934666600448.L)/real(57289080162325113677295.L); _C4x[455] = (_n*((real(131041238357599322112.L)- real(164338602202563084288.L)*_n)*_n-real(72938047765078867968.L))+ real(19247540382451367936.L))/real(654892818326187083801235.L); _C4x[456] = ((real(14834857172558413824.L)-real(52043597293893451776.L)* _n)*_n-real(2026056882363301888.L))/real(654892818326187083801235.L); _C4x[457] = (real(46409594160052961280.L)*_n- real(10885763249307910144.L))/real(654892818326187083801235.L); _C4x[458] = -real(562949953421312.L)/real(591592428478940455105.L); _C4x[459] = (_n*(real(13871086852301127680.L)*_n- real(7692148163548807168.L))+real(2026056882363301888.L))/ real(75511750540755324128025.L); _C4x[460] = (real(504403158265495552.L)*_n-real(68679894317400064.L))/ real(25170583513585108042675.L); _C4x[461] = -real(1142225455491842048.L)/real(75511750540755324128025.L); _C4x[462] = (real(274719577269600256.L)-real(1044835113549955072.L)*_n)/ real(11179661768371567468305.L); _C4x[463] = -real(9007199254740992.L)/real(3726553922790522489435.L); _C4x[464] = real(9007199254740992.L)/real(399032089736190248415.L); break; default: STATIC_ASSERT(nC4_ == 24 || nC4_ == 27 || nC4_ == 30, "Bad value of nC4_"); } } } // namespace GeographicLib
64.911628
80
0.683194
karamach
fad6a221417ec88efe820a0a99dcf21737187b1b
3,508
cpp
C++
src/luxrays/core/color/spd.cpp
aedancullen/LuxCore
2b2289ce985ddc1ba1a44f932e1f76ee9a1c3e3a
[ "Apache-2.0" ]
1
2020-07-19T22:00:26.000Z
2020-07-19T22:00:26.000Z
src/luxrays/core/color/spd.cpp
aedancullen/LuxCore
2b2289ce985ddc1ba1a44f932e1f76ee9a1c3e3a
[ "Apache-2.0" ]
null
null
null
src/luxrays/core/color/spd.cpp
aedancullen/LuxCore
2b2289ce985ddc1ba1a44f932e1f76ee9a1c3e3a
[ "Apache-2.0" ]
null
null
null
/*************************************************************************** * Copyright 1998-2018 by authors (see AUTHORS.txt) * * * * This file is part of LuxCoreRender. * * * * Licensed under the Apache License, Version 2.0 (the "License"); * * you may not use this file except in compliance with the License. * * You may obtain a copy of the License at * * * * http://www.apache.org/licenses/LICENSE-2.0 * * * * Unless required by applicable law or agreed to in writing, software * * distributed under the License is distributed on an "AS IS" BASIS, * * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.* * See the License for the specific language governing permissions and * * limitations under the License. * ***************************************************************************/ #include "luxrays/core/color/color.h" #include "luxrays/core/color/spd.h" #include "luxrays/core/color/spds/data/xyzbasis.h" #include "luxrays/utils/memory.h" using namespace std; using namespace luxrays; void SPD::AllocateSamples(u_int n) { // Allocate memory for samples samples = AllocAligned<float>(n); } void SPD::FreeSamples() { // Free Allocate memory for samples if (samples) FreeAligned(samples); } void SPD::Normalize() { float max = 0.f; for (u_int i = 0; i < nSamples; ++i) if(samples[i] > max) max = samples[i]; const float scale = 1.f / max; for (u_int i = 0; i < nSamples; ++i) samples[i] *= scale; } void SPD::Clamp() { for (u_int i = 0; i < nSamples; ++i) { if (!(samples[i] > 0.f)) samples[i] = 0.f; } } void SPD::Scale(float s) { for (u_int i = 0; i < nSamples; ++i) samples[i] *= s; } void SPD::Whitepoint(float temp) { vector<float> bbvals; // Fill bbvals with BB curve float w = lambdaMin * 1e-9f; for (u_int i = 0; i < nSamples; ++i) { // Compute blackbody power for wavelength w and temperature temp bbvals.push_back(4e-9f * (3.74183e-16f * powf(w, -5.f)) / (expf(1.4388e-2f / (w * temp)) - 1.f)); w += 1e-9f * delta; } // Normalize float max = 0.f; for (u_int i = 0; i < nSamples; ++i) if (bbvals[i] > max) max = bbvals[i]; const float scale = 1.f / max; // Multiply for (u_int i = 0; i < nSamples; ++i) samples[i] *= bbvals[i] * scale; } float SPD::Y() const { float y = 0.f; for (u_int i = 0; i < nCIE; ++i) y += Sample(i + CIEstart) * CIE_Y[i]; return y * 683.f; } float SPD::Filter() const { float y = 0.f; for (u_int i = 0; i < nSamples; ++i) y += samples[i]; return y / nSamples; } XYZColor SPD::ToXYZ() const { XYZColor c(0.f); for (u_int i = 0; i < nCIE; ++i) { const float s = Sample(i + CIEstart); c.c[0] += s * CIE_X[i]; c.c[1] += s * CIE_Y[i]; c.c[2] += s * CIE_Z[i]; } return c * 683.f; } XYZColor SPD::ToNormalizedXYZ() const { XYZColor c(0.f); float yint = 0.f; for (u_int i = 0; i < nCIE; ++i) { yint += CIE_Y[i]; const float s = Sample(i + CIEstart); c.c[0] += s * CIE_X[i]; c.c[1] += s * CIE_Y[i]; c.c[2] += s * CIE_Z[i]; } return c / yint; }
28.064
77
0.504846
aedancullen
fad6b7be50104a099ce57c1566e5b1ee29a5911c
19,979
cpp
C++
audio/common/Semantic/jhcTripleMem.cpp
Bhaskers-Blu-Org1/ALIA
3184441a0720e75322497b0ed60fad35e843b900
[ "Apache-2.0" ]
1
2020-03-01T13:22:34.000Z
2020-03-01T13:22:34.000Z
audio/common/Semantic/jhcTripleMem.cpp
IBM/ALIA
4dc5e76c3280ece5471eddca875c6b7fa35e6beb
[ "Apache-2.0" ]
null
null
null
audio/common/Semantic/jhcTripleMem.cpp
IBM/ALIA
4dc5e76c3280ece5471eddca875c6b7fa35e6beb
[ "Apache-2.0" ]
1
2020-06-29T15:11:03.000Z
2020-06-29T15:11:03.000Z
// jhcTripleMem.cpp : collection of semantic triples with search operators // // Written by Jonathan H. Connell, jconnell@alum.mit.edu // /////////////////////////////////////////////////////////////////////////// // // Copyright 2011-2015 IBM Corporation // // Licensed under the Apache License, Version 2.0 (the "License"); // you may not use this file except in compliance with the License. // You may obtain a copy of the License at // // http://www.apache.org/licenses/LICENSE-2.0 // // Unless required by applicable law or agreed to in writing, software // distributed under the License is distributed on an "AS IS" BASIS, // WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. // See the License for the specific language governing permissions and // limitations under the License. // /////////////////////////////////////////////////////////////////////////// #include <stdio.h> #include <string.h> #include <ctype.h> #include "Semantic/jhcTripleMem.h" /////////////////////////////////////////////////////////////////////////// // Creation and Destruction // /////////////////////////////////////////////////////////////////////////// //= Default constructor initializes certain values. jhcTripleMem::jhcTripleMem () { init_ptrs(); } //= Default destructor does necessary cleanup. jhcTripleMem::~jhcTripleMem () { BlankSlate(); } //= Get rid of any allocated entities or facts. void jhcTripleMem::BlankSlate () { jhcTripleNode *n, *n2; jhcTripleLink *t, *t2; // get rid of all links t = facts; while (t != NULL) { t2 = t->prev; // backward list delete t; t = t2; } // get rid of all nodes n = items; while (n != NULL) { n2 = n->next; // forward list delete n; n = n2; } // set up pointers init_ptrs(); } //= Set pointers up for start of a new session. void jhcTripleMem::init_ptrs () { // no nodes items = NULL; gnum = 1; // no links dawn = NULL; facts = NULL; // no communication activity update = NULL; reply = NULL; focus = NULL; } /////////////////////////////////////////////////////////////////////////// // Node and Link Modification // /////////////////////////////////////////////////////////////////////////// //= Create a new item of some base kind and returns its identifier. // if NULL string is given for kind then just assigns a number to node // returns 1 if successful, 0 if failed int jhcTripleMem::NewItem (char *id, const char *kind, int ssz) { char mix[80]; const jhcTripleNode *n; // build name including numeric suffix if (kind != NULL) sprintf_s(mix, "%s-%d", kind, gnum); else sprintf_s(mix, "%d", gnum); // create object and update counter if successful if ((n = add_node(mix)) == NULL) return 0; gnum++; // tell name assigned if (id != NULL) strcpy_s(id, ssz, n->Name()); return 1; } //= Forces item to have a SINGLE slot with the given value. // removes all other triples with same head and function // looks for numerical suffix to decide between tags and fillers // head with given id must already exist, as must filler node (if not tag) // returns 1 if successful, 0 if fails int jhcTripleMem::SetValue (const char *id, const char *fcn, const char *val) { jhcTripleLink *t0, *t; jhcTripleNode *n, *n2 = NULL; // check that the mentioned topic and filler exist if ((n = find_node(id)) == NULL) return 0; if (node_num(val) > 0) if ((n2 = find_node(val)) == NULL) return 0; // check for any other triples with the same slot name t = n->ArgList(); while (t != NULL) { // set up for next cycle t0 = t; t = t->NextArg(); if (_stricmp(t0->Fcn(), fcn) != 0) continue; // remove from history list (also splices out of args and props) pluck(t0); delete t0; } // add link with new value if (n2 != NULL) t = add_link(n, fcn, n2); else t = add_link(n, fcn, val); if (t == NULL) return 0; return 1; } //= Add another link to item with the given slot but a different value. // looks for numerical suffix to decide between tags and fillers // head with given id must already exist, as must filler node (if not tag) // returns 1 if successful, 0 if fails int jhcTripleMem::AddValue (const char *id, const char *fcn, const char *val) { jhcTripleLink *t; jhcTripleNode *n, *n2 = NULL; int any = 0; // check that the mentioned topic and filler exist if ((n = find_node(id)) == NULL) return 0; if (node_num(val) > 0) if ((n2 = find_node(val)) == NULL) return 0; // see if there are any other values for the slot t = n->ArgList(); while (t != NULL) { if (_stricmp(t->Fcn(), fcn) == 0) { any = 1; break; } t = t->next; } // add link with extra value and mark as a multiple if (n2 != NULL) t = add_link(n, fcn, n2); else t = add_link(n, fcn, val); if (t == NULL) return 0; t->multi = any; return 1; } //= Create or alter a triple encoding the given fact. // will automatically build topic and filler nodes if needed // generally used to accept facts verbatim from remote host // returns 1 if successful, 0 if fails int jhcTripleMem::BuildTriple (const char *id, const char *fcn, const char *val, int append) { jhcTripleNode *n, *n2 = NULL; // check that the mentioned topic exists (possibly create) if ((n = find_node(id)) == NULL) if ((n = add_node(id)) == NULL) return 0; // check that mentioned filler exists (possibly create) if (node_num(val) > 0) if ((n2 = find_node(val)) == NULL) if ((n2 = add_node(val)) == NULL) return 0; // set or add given value if (append > 0) return AddValue(id, fcn, val); return SetValue(id, fcn, val); } /////////////////////////////////////////////////////////////////////////// // Node and Link Interrogation // /////////////////////////////////////////////////////////////////////////// //= Tells if node of some generic base kind (does not check for existence). // returns 1 if instance of kind, 0 if different kind, -1 if not a proper instance int jhcTripleMem::NodeKind (const char *id, const char *kind) const { const char *sep; int n, klen = (int) strlen(kind); // check for proper argument types if ((id == NULL) || (kind == NULL)) return -1; if ((sep = strrchr(id, '-')) == NULL) return -1; // compare string segment in front of dash n = (int)(sep - id); if (n != klen) return 0; if (strncmp(id, kind, klen) != 0) return 0; return 1; } //= Determines how many values there are for a specific slot. // can be used with GetValue to enumerate all possible values int jhcTripleMem::NumVals (const char *id, const char *fcn) { const jhcTripleNode *n; const jhcTripleLink *t; int cnt = 0; // make sure topic exists n = find_node(id); if (n == NULL) return 0; // look through all arguments for matching slot name t = n->ArgList(); while (t != NULL) { if (_stricmp(t->Fcn(), fcn) == 0) cnt++; t = t->NextArg(); } return cnt; } //= Lookup up the i'th value for a given slot (binds a string). // index i used to enumerate through possibilities (use NumVals) // typical code: while (GetValue(id, fcn, val, i++)) > 0) {... id ...} // returns 1 if suitable triple found, 0 if nothing matches ("val" unchanged) int jhcTripleMem::GetValue (const char *id, const char *fcn, char *val, int i, int ssz) { const jhcTripleNode *n, *n2; const jhcTripleLink *t; int cnt = 0; // make sure topic node exists if (val == NULL) return 0; if ((n = find_node(id)) == NULL) return 0; // search for matching slot in argument list t = n->ArgList(); while (t != NULL) { if (_stricmp(t->Fcn(), fcn) == 0) if (cnt++ == i) break; t = t->NextArg(); } if (t == NULL) return 0; // get filler as a string (not a pointer) n2 = t->Fill(); if (n2 != NULL) strcpy_s(val, ssz, n2->Name()); else strcpy_s(val, ssz, t->Tag()); return 1; } //= Returns number of things for which the given slot has the given value. // can be used with GetHead to enumerate all possible values // NOTE: value must be a node, sort of meaningless for string tags int jhcTripleMem::NumHead (const char *fcn, const char *val) { const jhcTripleNode *n2; const jhcTripleLink *t; int cnt = 0; // make sure value node exists if ((n2 = find_node(val)) == NULL) return 0; // count items in the list t = n2->PropList(); while (t != NULL) { if (_stricmp(t->Fcn(), fcn) == 0) cnt++; t = t->NextProp(); } return cnt; } //= Return thing for which the specified slot has the given value. // index i used to enumerate through possibilities (use NumHead) // typical code: while (GetHead(id, fcn, val, i++)) > 0) {... id ...} // NOTE: value must be a node, sort of meaningless for string tags // returns 1 if suitable triple found, 0 if nothing matches ("id" unchanged) int jhcTripleMem::GetHead (char *id, const char *fcn, const char *val, int i, int ssz) { const jhcTripleNode *n, *n2; const jhcTripleLink *t; int cnt = 0; // make sure value node exists if (id == NULL) return 0; if ((n2 = find_node(val)) == NULL) return 0; // go a certain depth into the list t = n2->PropList(); while (t != NULL) { if (_stricmp(t->Fcn(), fcn) == 0) if (cnt++ == i) break; t = t->NextProp(); } if (t == NULL) return 0; // get head as a string (not a pointer) n = t->Head(); strcpy_s(id, ssz, n->Name()); return 1; } //= Get only relation head nodes that are of a particular kind. // returns 1 if suitable triple found, 0 if nothing matches int jhcTripleMem::GetHeadKind (char *id, const char *kind, const char *fcn, const char *val, int i, int ssz) { int n = 0, cnt = 0; while (GetHead(id, fcn, val, n++, ssz) > 0) if (NodeKind(id, kind) > 0) if (cnt++ == i) return 1; return 0; } //= See if there is already a triple exactly matching description. // value can be either a node name, a string tag, or a numeric value int jhcTripleMem::MatchTriple (const char *id, const char *fcn, const char *val) { const jhcTripleNode *n, *n2 = NULL; const jhcTripleLink *t; // check that the mentioned topic and filler exist if ((n = find_node(id)) == NULL) return 0; if (node_num(val) > 0) n2 = find_node(val); // walk down list of arguments of topic t = n->ArgList(); while (t != NULL) { // if slot matches then check this value if (_stricmp(t->Fcn(), fcn) == 0) { if (n2 != NULL) { // both are same filler if (t->Fill() == n2) return 1; } else if (t->Fill() == NULL) { // both are same tag if (_stricmp(t->Tag(), val) == 0) return 1; } } t = t->NextArg(); } return 0; } /////////////////////////////////////////////////////////////////////////// // Low Level Node Functions // /////////////////////////////////////////////////////////////////////////// //= Extract numeric suffix of node name (0 if none). int jhcTripleMem::node_num (const char *id) const { const char *sep; int n = 0; if ((sep = strrchr(id, '-')) != NULL) sscanf_s(sep + 1, "%d", &n); else sscanf_s(id, "%d", &n); return n; } //= Get mutable pointer to node with given name (if any). // cannot be const because reorders object list for efficiency jhcTripleNode *jhcTripleMem::find_node (const char *id) { jhcTripleNode *n0, *n2, *n = items; if ((id == NULL) || (*id == '\0')) return NULL; // first search for some existing item (most recent first) while (n != NULL) { // check if found it if (_stricmp(n->Name(), id) == 0) break; n0 = n; n = n->next; } // check if found and whether first in list if (n == NULL) return NULL; if (n != items) { // splice out of old position in list n2 = n->next; n0->next = n2; if (n2 != NULL) n2->prev = n0; // move to head of list for faster retrieval n->next = items; items = n; } return n; } //= Get pointer to item with given name (object list not rearranged). const jhcTripleNode *jhcTripleMem::read_node (const char *id) const { const jhcTripleNode *n = items; if ((id == NULL) || (*id == '\0')) return NULL; while (n != NULL) { if (_stricmp(n->Name(), id) == 0) return n; n = n->next; } return NULL; } //= Create a new node with the specified name (verbatim). // automatically updates gnum if needed jhcTripleNode *jhcTripleMem::add_node (const char *name) { jhcTripleNode *n; int i; // check for numeric suffix then create node if ((i = node_num(name)) > 0) gnum = __max(gnum, i + 1); if ((n = new jhcTripleNode(name)) == NULL) return NULL; // add node to the object list (most recent at head of "items" list) n->next = items; if (items != NULL) items->prev = n; items = n; return n; } /////////////////////////////////////////////////////////////////////////// // Low Level Link Functions // /////////////////////////////////////////////////////////////////////////// //= Add a new triple with the given node-based value. // returns pointer if okay, NULL if fails jhcTripleLink *jhcTripleMem::add_link (jhcTripleNode *n, const char *fcn, jhcTripleNode *n2) { jhcTripleLink *t; // check that the mentioned topic and filler exist if ((n == NULL) || (n2 == NULL)) return NULL; // create a new fact (automatically update args and props) if ((t = new jhcTripleLink(n, fcn)) == NULL) return NULL; t->SetFill(n2); // add to history list push(t); return t; } //= Add a new triple with the given string-based value. // returns pointer if okay, NULL if fails jhcTripleLink *jhcTripleMem::add_link (jhcTripleNode *n, const char *fcn, const char *txt) { jhcTripleLink *t; // check that the mentioned topic exists if (n == NULL) return NULL; // create a new fact (automatically update args and props) if ((t = new jhcTripleLink(n, fcn)) == NULL) return NULL; t->SetTag(txt); // add to history list push(t); return t; } //= Removes given link from history list. void jhcTripleMem::pluck (jhcTripleLink *t) { jhcTripleLink *p = t->prev, *n = t->next; // fix list ends if (dawn == t) dawn = n; if (facts == t) facts = p; // fix various communication pointers if (update == t) update = n; if (reply == t) reply = n; if (focus == t) focus = n; // remove from double-linked history if (p != NULL) p->next = n; if (n != NULL) n->prev = p; // clear local list pointers for safety t->prev = NULL; t->next = NULL; } //= Moves given link to end of history list. // assumes properly disconnected with "pluck" (or new) void jhcTripleMem::push (jhcTripleLink *t) { // tag on to end of history list ("facts" points to end) t->prev = facts; if (facts != NULL) facts->next = t; facts = t; // possibly fix list start (if only fact) if (dawn == NULL) dawn = t; // fix various communication pointers if (update == NULL) update = t; } /////////////////////////////////////////////////////////////////////////// // Debugging Functions // /////////////////////////////////////////////////////////////////////////// //= Write out current list of objects to a file. // returns number of items written, negative for error int jhcTripleMem::DumpItems (const char *fname, const char *hdr) const { FILE *out; const jhcTripleNode *n = items; int cnt = 0; // try opening file and writing header if (fopen_s(&out, fname, "w") != 0) return -1; if (hdr != NULL) fprintf(out, "// %s\n", hdr); // write out all numbered objects while (n != NULL) { if (*(n->Name()) != '\0') { fprintf(out, "%s\n", n->Name()); cnt++; } n = n->next; } // clean up and report fclose(out); return cnt; } //= Save all current triples in historical order to a file. // returns number of facts written, negative for error int jhcTripleMem::DumpHist (const char *fname, const char *hdr) const { FILE *out; const jhcTripleLink *t = dawn; int cnt = 0; // try opening file and writing header if (fopen_s(&out, fname, "w") != 0) return -1; if (hdr != NULL) fprintf(out, "// %s\n", hdr); // write out all triples while (t != NULL) { if (t->Tabbed(out) > 0) cnt++; t = t->next; } // clean up and report fclose(out); return cnt; } //= Print out current list of objects on console. void jhcTripleMem::PrintItems () const { const jhcTripleNode *n = items; // write header jprintf("----------------------\n"); jprintf("Numbered items:\n"); // write out all numbered objects while (n != NULL) { if (*(n->Name()) != '\0') jprintf(" %s\n", n->Name()); n = n->next; } jprintf("\n"); } //= Shows all the links involving some item. void jhcTripleMem::PrintLinks (const char *id) const { const jhcTripleNode *n; const jhcTripleLink *t, *t2; // print header jprintf("----------------------\n"); jprintf("Links involving %s:\n", id); // check if node exists n = read_node(id); if (n == NULL) { jprintf(" no node found!\n\n"); return; } // write out arguments t = n->ArgList(); if (t != NULL) while (t != NULL) { t->Print(" "); t = t->NextArg(); } // write out properties t2 = n->PropList(); if (t2 != NULL) while (t2 != NULL) { t2->Print(" "); t2 = t2->NextProp(); } // make sure somethign was written if ((t == NULL) && (t2 == NULL)) jprintf(" no links found!\n\n"); else jprintf("\n"); } //= Shows all the links emanating from some item. void jhcTripleMem::PrintArgs (const char *id) const { const jhcTripleNode *n; const jhcTripleLink *t; // print header jprintf("----------------------\n"); jprintf("Arguments of %s:\n", id); // check if node exists n = read_node(id); if (n == NULL) { jprintf(" no node found!\n\n"); return; } // write out facts t = n->ArgList(); if (t == NULL) { jprintf(" no outgoing links found!\n\n"); return; } // write out all facts while (t != NULL) { t->Print(" "); t = t->NextArg(); } jprintf("\n"); } //= Shows all the links impinging on some item. void jhcTripleMem::PrintProps (const char *id) const { const jhcTripleNode *n; const jhcTripleLink *t; // print header jprintf("----------------------\n"); jprintf("Properties of %s:\n", id); // check if node exists n = read_node(id); if (n == NULL) { jprintf(" no node found!\n\n"); return; } // check for links t = n->PropList(); if (t == NULL) { jprintf(" no incoming links found!\n\n"); return; } // write out all links while (t != NULL) { t->Print(" "); t = t->NextProp(); } jprintf("\n"); } //= Print out all current triples on console. void jhcTripleMem::PrintHist () const { const jhcTripleLink *t; // write header jprintf("----------------------\n"); jprintf("Triple history:\n"); // write out all triples t = dawn; while (t != NULL) { t->Print(" "); t = t->next; } jprintf("\n"); } //= Print out all the triples about to be sent to remote host. void jhcTripleMem::PrintUpdate () const { const jhcTripleLink *t; // write header jprintf("----------------------\n"); jprintf("New pod for host:\n"); // write out all triples t = update; while (t != NULL) { t->Print(" "); t = t->next; } jprintf("\n"); }
22.125138
108
0.561139
Bhaskers-Blu-Org1
fadb733bcf9a30f11760de8fb5e92107df4ace98
3,885
hpp
C++
include/ShaderAST/Visitors/CloneExpr.hpp
Praetonus/ShaderWriter
1c5b3961e3e1b91cb7158406998519853a4add07
[ "MIT" ]
null
null
null
include/ShaderAST/Visitors/CloneExpr.hpp
Praetonus/ShaderWriter
1c5b3961e3e1b91cb7158406998519853a4add07
[ "MIT" ]
null
null
null
include/ShaderAST/Visitors/CloneExpr.hpp
Praetonus/ShaderWriter
1c5b3961e3e1b91cb7158406998519853a4add07
[ "MIT" ]
null
null
null
/* See LICENSE file in root folder */ #ifndef ___SDW_CloneExpr_H___ #define ___SDW_CloneExpr_H___ #pragma once #include "ShaderAST/Expr/ExprVisitor.hpp" namespace ast { class ExprCloner : public expr::Visitor { public: static expr::ExprPtr submit( expr::Expr * expr ); static expr::ExprPtr submit( expr::ExprPtr const & expr ); protected: ExprCloner( expr::ExprPtr & result ); private: virtual expr::ExprPtr doSubmit( expr::Expr * expr ); expr::ExprPtr doSubmit( expr::ExprPtr const & expr ); protected: void visitAddExpr( expr::Add * expr )override; void visitAddAssignExpr( expr::AddAssign * expr )override; void visitAggrInitExpr( expr::AggrInit * expr )override; void visitAliasExpr( expr::Alias * expr )override; void visitAndAssignExpr( expr::AndAssign * expr )override; void visitArrayAccessExpr( expr::ArrayAccess * expr )override; void visitAssignExpr( expr::Assign * expr )override; void visitBitAndExpr( expr::BitAnd * expr )override; void visitBitNotExpr( expr::BitNot * expr )override; void visitBitOrExpr( expr::BitOr * expr )override; void visitBitXorExpr( expr::BitXor * expr )override; void visitCastExpr( expr::Cast * expr )override; void visitCommaExpr( expr::Comma * expr )override; void visitCompositeConstructExpr( expr::CompositeConstruct * expr )override; void visitDivideExpr( expr::Divide * expr )override; void visitDivideAssignExpr( expr::DivideAssign * expr )override; void visitEqualExpr( expr::Equal * expr )override; void visitFnCallExpr( expr::FnCall * expr )override; void visitGreaterExpr( expr::Greater * expr )override; void visitGreaterEqualExpr( expr::GreaterEqual * expr )override; void visitIdentifierExpr( expr::Identifier * expr )override; void visitImageAccessCallExpr( expr::ImageAccessCall * expr )override; void visitInitExpr( expr::Init * expr )override; void visitIntrinsicCallExpr( expr::IntrinsicCall * expr )override; void visitLessExpr( expr::Less * expr )override; void visitLessEqualExpr( expr::LessEqual * expr )override; void visitLiteralExpr( expr::Literal * expr )override; void visitLogAndExpr( expr::LogAnd * expr )override; void visitLogNotExpr( expr::LogNot * expr )override; void visitLogOrExpr( expr::LogOr * expr )override; void visitLShiftExpr( expr::LShift * expr )override; void visitLShiftAssignExpr( expr::LShiftAssign * expr )override; void visitMbrSelectExpr( expr::MbrSelect * expr )override; void visitMinusExpr( expr::Minus * expr )override; void visitMinusAssignExpr( expr::MinusAssign * expr )override; void visitModuloExpr( expr::Modulo * expr )override; void visitModuloAssignExpr( expr::ModuloAssign * expr )override; void visitNotEqualExpr( expr::NotEqual * expr )override; void visitOrAssignExpr( expr::OrAssign * expr )override; void visitPostDecrementExpr( expr::PostDecrement * expr )override; void visitPostIncrementExpr( expr::PostIncrement * expr )override; void visitPreDecrementExpr( expr::PreDecrement * expr )override; void visitPreIncrementExpr( expr::PreIncrement * expr )override; void visitQuestionExpr( expr::Question * expr )override; void visitRShiftExpr( expr::RShift * expr )override; void visitRShiftAssignExpr( expr::RShiftAssign * expr )override; void visitSwitchCaseExpr( expr::SwitchCase * expr )override; void visitSwitchTestExpr( expr::SwitchTest * expr )override; void visitSwizzleExpr( expr::Swizzle * expr )override; void visitTextureAccessCallExpr( expr::TextureAccessCall * expr )override; void visitTimesExpr( expr::Times * expr )override; void visitTimesAssignExpr( expr::TimesAssign * expr )override; void visitUnaryMinusExpr( expr::UnaryMinus * expr )override; void visitUnaryPlusExpr( expr::UnaryPlus * expr )override; void visitXorAssignExpr( expr::XorAssign * expr )override; protected: expr::ExprPtr & m_result; }; } #endif
43.651685
78
0.758559
Praetonus
fadbd5bf79c03e167658347a73c2102ca685c543
6,290
cpp
C++
Sail/src/Sail/entities/systems/Gameplay/candles/CandlePlacementSystem.cpp
BTH-StoraSpel-DXR/SPLASH
1bf4c9b96cbcce570ed3a97f30a556a992e1ad08
[ "MIT" ]
12
2019-09-11T15:52:31.000Z
2021-11-14T20:33:35.000Z
Sail/src/Sail/entities/systems/Gameplay/candles/CandlePlacementSystem.cpp
BTH-StoraSpel-DXR/Game
1bf4c9b96cbcce570ed3a97f30a556a992e1ad08
[ "MIT" ]
227
2019-09-11T08:40:24.000Z
2020-06-26T14:12:07.000Z
Sail/src/Sail/entities/systems/Gameplay/candles/CandlePlacementSystem.cpp
BTH-StoraSpel-DXR/Game
1bf4c9b96cbcce570ed3a97f30a556a992e1ad08
[ "MIT" ]
2
2020-10-26T02:35:18.000Z
2020-10-26T02:36:01.000Z
#include "pch.h" #include "CandlePlacementSystem.h" #include "Sail/entities/components/Components.h" #include "Network/NWrapperSingleton.h" #include "Sail/utils/GameDataTracker.h" #include "Sail/entities/ECS.h" #include "Sail/entities/systems/physics/UpdateBoundingBoxSystem.h" #include "Sail/events/EventDispatcher.h" #include "Sail/events/types/HoldingCandleToggleEvent.h" #include "Sail/events/types/TorchNotHeldEvent.h" CandlePlacementSystem::CandlePlacementSystem() { registerComponent<CandleComponent>(true, true, true); registerComponent<TransformComponent>(true, true, true); registerComponent<NetworkSenderComponent>(false, true, false); registerComponent<AnimationComponent>(false, true, true); registerComponent<CollisionComponent>(false, true, true); EventDispatcher::Instance().subscribe(Event::Type::HOLDING_CANDLE_TOGGLE, this); } CandlePlacementSystem::~CandlePlacementSystem() { EventDispatcher::Instance().unsubscribe(Event::Type::HOLDING_CANDLE_TOGGLE, this); } void CandlePlacementSystem::update(float dt) { for (auto e : entities) { if (e->isAboutToBeDestroyed()) { continue; } auto candle = e->getComponent<CandleComponent>(); if (candle->isCarried != candle->wasCarriedLastUpdate) { toggleCandlePlacement(e); } else if (!candle->isLit && !candle->isCarried) { candle->isCarried = true; toggleCandlePlacement(e); } candle->wasCarriedLastUpdate = candle->isCarried; constexpr float candleHeight = 0.37f; glm::vec3 flamePos = e->getComponent<TransformComponent>()->getMatrixWithUpdate() * glm::vec4(0, candleHeight, 0, 1); e->getComponent<LightComponent>()->currentPos = flamePos; if (!candle->isCarried && e->getParent() && e->getParent()->hasComponent<NetworkReceiverComponent>()) { EventDispatcher::Instance().emit(TorchNotHeldEvent(e->getParent()->getComponent<NetworkReceiverComponent>()->m_id)); } } } void CandlePlacementSystem::toggleCandlePlacement(Entity* e) { auto candleComp = e->getComponent<CandleComponent>(); auto candleTransComp = e->getComponent<TransformComponent>(); auto parentTransComp = e->getParent()->getComponent<TransformComponent>(); if (candleComp->isCarried) { // Pick up the candle if (glm::length(parentTransComp->getTranslation() - candleTransComp->getTranslation()) < 2.0f || !candleComp->isLit) { candleTransComp->setParent(parentTransComp); e->getParent()->getComponent<AnimationComponent>()->rightHandEntity = e; e->removeComponent<CollisionComponent>(); if (e->hasComponent<MovementComponent>()) { auto moveC = e->getComponent<MovementComponent>(); moveC->constantAcceleration = glm::vec3(0.f); moveC->velocity = glm::vec3(0.f); moveC->oldVelocity = glm::vec3(0.f); } candleTransComp->setCenter(glm::vec3(0.0f)); } else { candleComp->isCarried = false; } } // Only send the message if we actually did something to the candle if (candleComp->isCarried != candleComp->wasCarriedLastUpdate) { // Inform other players that we've put down our candle if (e->getParent()->getComponent<LocalOwnerComponent>()) { NWrapperSingleton::getInstance().queueGameStateNetworkSenderEvent( Netcode::MessageType::CANDLE_HELD_STATE, SAIL_NEW Netcode::MessageCandleHeldState{ e->getParent()->getComponent<NetworkSenderComponent>()->m_id, candleComp->isCarried, e->getComponent<TransformComponent>()->getTranslation() }, false // We've already put down our own candle so no need to do it again ); auto senderC = e->getComponent<NetworkSenderComponent>(); if (candleComp->isCarried) { // If we're holding the candle it will be attached to our animation so don't send its // position and rotation. senderC->removeMessageType(Netcode::MessageType::CHANGE_LOCAL_POSITION); senderC->removeMessageType(Netcode::MessageType::CHANGE_LOCAL_ROTATION); NWrapperSingleton::getInstance().queueGameStateNetworkSenderEvent( Netcode::MessageType::SET_CENTER, SAIL_NEW Netcode::MessageSetCenter{ e->getComponent<NetworkReceiverComponent>()->m_id, glm::vec3(0.0f) }, false ); } else { // If we're no longer holding the candle then start sending its position and rotation // so that other people will be able to see it when we throw it. senderC->addMessageType(Netcode::MessageType::CHANGE_LOCAL_POSITION); senderC->addMessageType(Netcode::MessageType::CHANGE_LOCAL_ROTATION); } } } } bool CandlePlacementSystem::onEvent(const Event& event) { auto onHoldingCandleToggle = [&](const HoldingCandleToggleEvent& e) { Entity* player = nullptr; Entity* candle = nullptr; // Find the candle whose parent has the correct ID for (auto candleEntity : entities) { if (auto parentEntity = candleEntity->getParent(); parentEntity) { if (parentEntity->getComponent<NetworkReceiverComponent>()->m_id == e.netCompID) { player = parentEntity; candle = candleEntity; break; } } } // candle exists => player exists (only need to check candle) if (!candle) { SAIL_LOG_WARNING("Holding candle toggled but no matching entity found"); return; } auto candleComp = candle->getComponent<CandleComponent>(); auto candleTransComp = candle->getComponent<TransformComponent>(); candleComp->isCarried = e.isHeld; candleComp->wasCarriedLastUpdate = e.isHeld; if (e.isHeld) { candleTransComp->setTranslation(glm::vec3(10.f, 2.0f, 0.f)); candleTransComp->setParent(player->getComponent<TransformComponent>()); player->getComponent<AnimationComponent>()->rightHandEntity = candle; if (candle->hasComponent<MovementComponent>()) { if (candle->hasComponent<MovementComponent>()) { auto moveC = candle->getComponent<MovementComponent>(); moveC->constantAcceleration = glm::vec3(0.f); moveC->velocity = glm::vec3(0.f); moveC->oldVelocity = glm::vec3(0.f); } } } else { candleTransComp->removeParent(); player->getComponent<AnimationComponent>()->rightHandEntity = nullptr; // Might be needed ECS::Instance()->getSystem<UpdateBoundingBoxSystem>()->update(0.0f); } }; switch (event.type) { case Event::Type::HOLDING_CANDLE_TOGGLE: onHoldingCandleToggle((const HoldingCandleToggleEvent&)event); break; default: break; } return true; }
35.942857
120
0.728299
BTH-StoraSpel-DXR
fadd48712932fb683728a410f11816edaf6fbaab
3,107
cpp
C++
Samples/JapanesePhoneticAnalysis/cpp/Scenario1_Analyze.xaml.cpp
dujianxin/Windows-universal-samples
d4e95ff0ac408c5d4d980bb18d53fb2c6556a273
[ "MIT" ]
2,504
2019-05-07T06:56:42.000Z
2022-03-31T19:37:59.000Z
Samples/JapanesePhoneticAnalysis/cpp/Scenario1_Analyze.xaml.cpp
dujianxin/Windows-universal-samples
d4e95ff0ac408c5d4d980bb18d53fb2c6556a273
[ "MIT" ]
314
2019-05-08T16:56:30.000Z
2022-03-21T07:13:45.000Z
Samples/JapanesePhoneticAnalysis/cpp/Scenario1_Analyze.xaml.cpp
dujianxin/Windows-universal-samples
d4e95ff0ac408c5d4d980bb18d53fb2c6556a273
[ "MIT" ]
2,219
2019-05-07T00:47:26.000Z
2022-03-30T21:12:31.000Z
//********************************************************* // // Copyright (c) Microsoft. All rights reserved. // This code is licensed under the MIT License (MIT). // THIS CODE IS PROVIDED *AS IS* WITHOUT WARRANTY OF // ANY KIND, EITHER EXPRESS OR IMPLIED, INCLUDING ANY // IMPLIED WARRANTIES OF FITNESS FOR A PARTICULAR // PURPOSE, MERCHANTABILITY, OR NON-INFRINGEMENT. // //********************************************************* #include "pch.h" #include "MainPage.xaml.h" #include "Scenario1_Analyze.xaml.h" using namespace Platform; using namespace SDKTemplate; using namespace Windows::Foundation; using namespace Windows::Foundation::Collections; using namespace Windows::Globalization; using namespace Windows::UI::Xaml; using namespace Windows::UI::Xaml::Controls; using namespace Windows::UI::Xaml::Controls::Primitives; using namespace Windows::UI::Xaml::Data; using namespace Windows::UI::Xaml::Input; using namespace Windows::UI::Xaml::Media; using namespace Windows::UI::Xaml::Navigation; Scenario1_Analyze::Scenario1_Analyze() { InitializeComponent(); } void Scenario1_Analyze::AnalyzeButton_Click(Platform::Object^ sender, Windows::UI::Xaml::RoutedEventArgs^ e) { String^ input = InputTextBox->Text; String^ output = L""; // monoRuby = false means that each element in the result corresponds to a single Japanese word. // monoRuby = true means that each element in the result corresponds to one or more characters which are pronounced as a single unit. bool monoRuby = MonoRubyRadioButton->IsChecked->Value; // Analyze the Japanese text according to the specified algorithm. // The maximum length of the input string is 100 characters. IVectorView<JapanesePhoneme^>^ words = JapanesePhoneticAnalyzer::GetWords(input, monoRuby); for (JapanesePhoneme^ word : words) { // Put each phrase on its own line. if (output->Length() != 0 && word->IsPhraseStart) { output += L"\r\n"; } // DisplayText is the display text of the word, which has same characters as the input of GetWords(). // YomiText is the reading text of the word, as known as Yomi, which typically consists of Hiragana characters. // However, please note that the reading can contains some non-Hiragana characters for some display texts such as emoticons or symbols. output += word->DisplayText + L"(" + word->YomiText + L")"; } // Display the result. OutputTextBlock->Text = output; if (input != L"" && output == L"") { // If the result from GetWords() is empty but the input is not empty, // it means the given input is too long to analyze. MainPage::Current->NotifyUser("Failed to get words from the input text. The input text is too long to analyze.", NotifyType::ErrorMessage); } else { // Otherwise, the analysis has been done successfully. MainPage::Current->NotifyUser("Got words from the input text successfully.", NotifyType::StatusMessage); } }
43.760563
149
0.663663
dujianxin
fae2971ceeb3d2c00f22cb689232717f6b6027fb
24,677
cpp
C++
Source/Core/Main.cpp
HuCoco/RayTracing
e1d620a2d263a986a3557379588b72aea01f9181
[ "MIT" ]
null
null
null
Source/Core/Main.cpp
HuCoco/RayTracing
e1d620a2d263a986a3557379588b72aea01f9181
[ "MIT" ]
null
null
null
Source/Core/Main.cpp
HuCoco/RayTracing
e1d620a2d263a986a3557379588b72aea01f9181
[ "MIT" ]
null
null
null
//============================================================ // STUDENT NAME: HU KE // NUS User ID.: NUSRI1613 // COMMENTS TO GRADER: // // // ============================================================ // // FILE: Main.cpp #include <Platform/Platform.h> #include <cstdlib> #include <cstdio> #include <cmath> #include "Util.h" #include "Vector3d.h" #include "Color.h" #include "Image.h" #include "Ray.h" #include "Camera.h" #include "Material.h" #include "Light.h" #include "Surface.h" #include "Sphere.h" #include "Plane.h" #include "Triangle.h" #include "Scene.h" #include "Raytrace.h" #include "ImGui/imgui.h" #include "ImGui/imgui_impl_glfw_gl3.h" #include <stdio.h> #include <GL/gl3w.h> // This example is using gl3w to access OpenGL functions (because it is small). You may use glew/glad/glLoadGen/etc. whatever already works for you. #include <GLFW/glfw3.h> #include <Renderer/AsynRenderer.h> #include <Core/Texture.h> #include "Renderer/ComputeShaderRenderer.h" #include "UI/RenderUI.h" using namespace std; // Constants for Scene 1. static const uint32_t imageWidth1 = 640; static const uint32_t imageHeight1 = 480; static const uint32_t reflectLevels1 = 2; // 0 -- object does not reflect scene. static const uint32_t numSample1 = 100; static const bool hasShadow1 = true; // Constants for Scene 2. static const uint32_t imageWidth2 = 640; static const uint32_t imageHeight2 = 480; static const uint32_t reflectLevels2 = 2; // 0 -- object does not reflect scene. static const uint32_t numSample2 = 100; static const bool hasShadow2 = true; static const uint32_t imageWidth3 = 640; static const uint32_t imageHeight3 = 480; static const uint32_t reflectLevels3 = 0; // 0 -- object does not reflect scene. static const uint32_t numSample3 = 200; static const bool hasShadow3 = false; Image gImage; Texture lut_tex; /////////////////////////////////////////////////////////////////////////// // Raytrace the whole image of the scene and write it to a file. /////////////////////////////////////////////////////////////////////////// //template<class T> //void RenderImage( const char *imageFilename, const Scene &scene, int reflectLevels, bool hasShadow ) //{ // int imgWidth = scene.camera.getImageWidth(); // int imgHeight = scene.camera.getImageHeight(); // // //Image image( imgWidth, imgHeight ); // To store the result of ray tracing. // gImage.setImage(imgWidth, imgHeight); // double startTime = Util::GetCurrRealTime(); // double startCPUTime = Util::GetCurrCPUTime(); // // // Generate image. // for ( int y = 0; y < imgHeight; y++ ) // { // double pixelPosY = y + 0.5; // // for ( int x = 0; x < imgWidth; x++ ) // { // double pixelPosX = x + 0.5; // Ray ray = scene.camera.getRay( pixelPosX, pixelPosY ); // Color pixelColor = T::TraceRay( ray, scene, reflectLevels, hasShadow ); // pixelColor.clamp(); // gImage.setPixel( x, y, pixelColor ); // } // // printf( "%d ", y ); // } // double stopCPUTime = Util::GetCurrCPUTime(); // double stopTime = Util::GetCurrRealTime(); // printf( "CPU time taken = %.1f sec\n", stopCPUTime - startCPUTime ); // printf( "Real time taken = %.1f sec\n", stopTime - startTime ); // // // Write image to file. // //image.writeToFile( imageFilename ); //} // Forward declarations. These functions are defined later in the file. namespace PBR { void DefineScene1(Scene &scene, int imageWidth, int imageHeight); void DefineScene2(Scene &scene, int imageWidth, int imageHeight); void DefineScene3(Scene &scene, int imageWidth, int imageHeight); } namespace Phong { void DefineScene1(Scene &scene, int imageWidth, int imageHeight); void DefineScene2(Scene &scene, int imageWidth, int imageHeight); void DefineScene3(Scene &scene, int imageWidth, int imageHeight); } static void glfw_error_callback(int error, const char* description) { fprintf(stderr, "Error %d: %s\n", error, description); } Texture tex; #include <SceneViewer/PBRViewer.h> #include <UI/RenderUI.h> int main() { RenderUI::GetInstance()->Initialize(); PBR::AsynRenderer::GetInstance()->Initialize(); Phong::AsynRenderer::GetInstance()->Initialize(); Phong::Scene scene1; DefineScene1( scene1, imageWidth1, imageHeight1 ); Phong::Scene scene2; DefineScene2( scene2, imageWidth2, imageHeight2 ); PBR::Scene scene3; DefineScene3(scene3, imageWidth3, imageHeight3); glfwSetErrorCallback(glfw_error_callback); if (!glfwInit()) return 1; glfwWindowHint(GLFW_CONTEXT_VERSION_MAJOR, 4); glfwWindowHint(GLFW_CONTEXT_VERSION_MINOR, 2); glfwWindowHint(GLFW_OPENGL_PROFILE, GLFW_OPENGL_CORE_PROFILE); GLFWwindow* window = glfwCreateWindow(1280, 720, "ImGui GLFW+OpenGL3 example", NULL, NULL); glfwMakeContextCurrent(window); glfwSwapInterval(1); // Enable vsync gl3wInit(); IMGUI_CHECKVERSION(); ImGui::CreateContext(); ImGuiIO& io = ImGui::GetIO(); (void)io; ImGui_ImplGlfwGL3_Init(window, true); ImGui::StyleColorsDark(); io.Fonts->AddFontFromFileTTF("Resource/Fonts/Roboto-Medium.ttf", 16.0f); gImage.setImage(scene2.camera.getImageWidth(), scene2.camera.getImageHeight()); PBRSceneViewer Viewer; ViewWindow view("test"); Viewer.Initialize(); Viewer.SetScene(&scene3); Viewer.SetViewWindow(&view); lut_tex.Load("D:/RayTracing/Resource/Textures/pbdf_lut/ibl_brdf_lut.png"); PBR::ComputeShaderRenderer::GetInstance()->Initialize(); PBR::ComputeShaderRenderer::GetInstance()->CreateOutputImage(640, 480); PBR::ComputeShaderRenderer::GetInstance()->GenerateShaderData(scene3); PBR::ComputeShaderRenderer::GetInstance()->PrepareShaderData(); //RenderImage("C:/Users/Huke/Desktop/ImageTest/out2.tga", scene2, reflectLevels2, hasShadow2); while (!glfwWindowShouldClose(window)) { glfwPollEvents(); ImGui_ImplGlfwGL3_NewFrame(); RenderUI::GetInstance()->Update(); Viewer.Update(); //ImGui::End(); //ImGui::ShowDemoWindow(); //gImage.UpdateTexture(); //{ // static uint32_t aaa = 0; // ImGui::Begin("Option"); // if (ImGui::Button("Start")) // { // //AsynRenderer::GetInstance()->RenderScene(&scene3, &gImage, 8, hasShadow3, reflectLevels3, numSample3); // } // if (ImGui::Button("Start2")) // { // // AsynRenderer::GetInstance()->RenderScene(&scene2, &gImage, 8, hasShadow2, reflectLevels2, numSample2); // } // if (ImGui::Button("Gamma")) // { // gImage.gammaCorrect(); // } // ImGui::End(); //} //{ // ImGui::Begin("Option"); // PBR::ComputeShaderRenderer::GetInstance()->GenerateShaderData(scene3); // PBR::ComputeShaderRenderer::GetInstance()->PassShaderData(); // PBR::ComputeShaderRenderer::GetInstance()->Render(); // glBindTexture(GL_TEXTURE_2D, PBR::ComputeShaderRenderer::GetInstance()->GetOutputImageHandle()); // ImTextureID my_tex_id = reinterpret_cast<ImTextureID>(PBR::ComputeShaderRenderer::GetInstance()->GetOutputImageHandle());// (gImage.GetGLTextureHandle());//io.Fonts->TexID; // ImTextureID my_tex_id = reinterpret_cast<ImTextureID>(gImage.GetGLTextureHandle()); // float my_tex_w = (float)gImage.GetWidth();//(float)io.Fonts->TexWidth; // float my_tex_h = (float)gImage.GetHeight();//(float)io.Fonts->TexHeight; // ImVec2 pos = ImGui::GetCursorScreenPos(); // ImGui::Image(my_tex_id, ImVec2(my_tex_w, my_tex_h), ImVec2(0, 0), ImVec2(1, 1), ImColor(255, 255, 255, 255), ImColor(255, 255, 255, 128)); // // if (ImGui::IsItemHovered()) // { // ImGui::BeginTooltip(); // float region_sz = 32.0f; // float region_x = io.MousePos.x - pos.x - region_sz * 0.5f; // if (region_x < 0.0f) // region_x = 0.0f; // else if (region_x > my_tex_w - region_sz) // region_x = my_tex_w - region_sz; // float region_y = io.MousePos.y - pos.y - region_sz * 0.5f; // if (region_y < 0.0f) // region_y = 0.0f; // else if (region_y > my_tex_h - region_sz) // region_y = my_tex_h - region_sz; // float zoom = 4.0f; // ImGui::Text("Min: (%.2f, %.2f)", region_x, region_y); // ImGui::Text("Max: (%.2f, %.2f)", region_x + region_sz, region_y + region_sz); // ImVec2 uv0 = ImVec2((region_x) / my_tex_w, (region_y) / my_tex_h); // ImVec2 uv1 = ImVec2((region_x + region_sz) / my_tex_w, (region_y + region_sz) / my_tex_h); // ImGui::Text("uv: (%.2f, %.2f)", uv0.x, uv0.y); // ImGui::Image(my_tex_id, ImVec2(region_sz * zoom, region_sz * zoom), uv0, uv1, ImColor(255, 255, 255, 255), ImColor(255, 255, 255, 128)); // ImGui::EndTooltip(); // } // ImGui::End(); //} // Rendering int display_w, display_h; glfwGetFramebufferSize(window, &display_w, &display_h); glViewport(0, 0, display_w, display_h); glClearColor(0.1f, 0.1f, 0.1f, 1.0f); glClear(GL_COLOR_BUFFER_BIT); ImGui::Render(); ImGui_ImplGlfwGL3_RenderDrawData(ImGui::GetDrawData()); glfwSwapBuffers(window); if (PBR::AsynRenderer::GetInstance()->IsFinishAllTask()) { PBR::AsynRenderer::GetInstance()->ClearTasks(); } } PBR::AsynRenderer::GetInstance()->Finalize(); PBR::ComputeShaderRenderer::GetInstance()->Finalize(); RenderUI::GetInstance()->Finalize(); // Cleanup ImGui_ImplGlfwGL3_Shutdown(); ImGui::DestroyContext(); glfwDestroyWindow(window); glfwTerminate(); return 0; } /////////////////////////////////////////////////////////////////////////// // Modeling of Scene 1. /////////////////////////////////////////////////////////////////////////// namespace Phong { void DefineScene1(Scene &scene, int imageWidth, int imageHeight) { scene.backgroundColor = Color(0.2f, 0.3f, 0.5f); scene.amLight.I_a = Color(1.0f, 1.0f, 1.0f) * 0.25f; // Define materials. scene.numMaterials = 5; scene.material = new Material[scene.numMaterials]; Material* mat = reinterpret_cast<Material*>(scene.material); // Light red. scene.material[0].diffuse = Color(0.8f, 0.4f, 0.4f); scene.material[0].ambient = Color(0.8f, 0.4f, 0.4f); scene.material[0].specluar = Color(0.8f, 0.8f, 0.8f) / 1.5f; scene.material[0].reflection = Color(0.8f, 0.8f, 0.8f) / 3.0f; scene.material[0].shininess = 32.0f; // Light green. scene.material[1].diffuse = Color(0.4f, 0.8f, 0.4f); scene.material[1].ambient = Color(0.4f, 0.8f, 0.4f); scene.material[1].specluar = Color(0.8f, 0.8f, 0.8f) / 1.5f; scene.material[1].reflection = Color(0.8f, 0.8f, 0.8f) / 3.0f; scene.material[1].shininess = 64.0f; // Light blue. scene.material[2].diffuse = Color(0.4f, 0.4f, 0.8f) * 0.9f; scene.material[2].ambient = Color(0.4f, 0.4f, 0.8f) * 0.9f; scene.material[2].specluar = Color(0.8f, 0.8f, 0.8f) / 1.5f; scene.material[2].reflection = Color(0.8f, 0.8f, 0.8f) / 2.5f; scene.material[2].shininess = 64.0f; // Yellow. scene.material[3].diffuse = Color(0.6f, 0.6f, 0.2f); scene.material[3].ambient = Color(0.6f, 0.6f, 0.2f); scene.material[3].specluar = Color(0.8f, 0.8f, 0.8f) / 1.5f; scene.material[3].reflection = Color(0.8f, 0.8f, 0.8f) / 3.0f; scene.material[3].shininess = 64.0f; // Gray. scene.material[4].diffuse = Color(0.6f, 0.6f, 0.6f); scene.material[4].ambient = Color(0.6f, 0.6f, 0.6f); scene.material[4].specluar = Color(0.6f, 0.6f, 0.6f); scene.material[4].reflection = Color(0.8f, 0.8f, 0.8f) / 3.0f; scene.material[4].shininess = 128.0f; // Define point light sources. scene.numPtLights = 2; scene.ptLight = new PointLightSource[scene.numPtLights]; scene.ptLight[0].I_source = Color(1.0f, 1.0f, 1.0f) * 0.6f; scene.ptLight[0].position = Vector3d(100.0, 120.0, 10.0); scene.ptLight[1].I_source = Color(1.0f, 1.0f, 1.0f) * 0.6f; scene.ptLight[1].position = Vector3d(5.0, 80.0, 60.0); // Define surface primitives. scene.numSurfaces = 15; scene.surfacep = new SurfacePtr[scene.numSurfaces]; scene.surfacep[0] = new Plane(0.0, 1.0, 0.0, 0.0, 2); // Horizontal plane. scene.surfacep[1] = new Plane(1.0, 0.0, 0.0, 0.0, 4); // Left vertical plane. scene.surfacep[2] = new Plane(0.0, 0.0, 1.0, 0.0, 4); // Right vertical plane. scene.surfacep[3] = new Sphere(Vector3d(40.0, 20.0, 42.0), 22.0, 0); // Big sphere. scene.surfacep[4] = new Sphere(Vector3d(75.0, 10.0, 40.0), 12.0, 1); // Small sphere. // Cube +y face. scene.surfacep[5] = new Triangle(Vector3d(50.0, 20.0, 90.0), Vector3d(50.0, 20.0, 70.0), Vector3d(30.0, 20.0, 70.0), 3); scene.surfacep[6] = new Triangle(Vector3d(50.0, 20.0, 90.0), Vector3d(30.0, 20.0, 70.0), Vector3d(30.0, 20.0, 90.0), 3); // Cube +x face. scene.surfacep[7] = new Triangle(Vector3d(50.0, 0.0, 70.0), Vector3d(50.0, 20.0, 70.0), Vector3d(50.0, 20.0, 90.0), 3); scene.surfacep[8] = new Triangle(Vector3d(50.0, 0.0, 70.0), Vector3d(50.0, 20.0, 90.0), Vector3d(50.0, 0.0, 90.0), 3); // Cube -x face. scene.surfacep[9] = new Triangle(Vector3d(30.0, 0.0, 90.0), Vector3d(30.0, 20.0, 90.0), Vector3d(30.0, 20.0, 70.0), 3); scene.surfacep[10] = new Triangle(Vector3d(30.0, 0.0, 90.0), Vector3d(30.0, 20.0, 70.0), Vector3d(30.0, 0.0, 70.0),3); // Cube +z face. scene.surfacep[11] = new Triangle(Vector3d(50.0, 0.0, 90.0), Vector3d(50.0, 20.0, 90.0), Vector3d(30.0, 20.0, 90.0), 3); scene.surfacep[12] = new Triangle(Vector3d(50.0, 0.0, 90.0), Vector3d(30.0, 20.0, 90.0), Vector3d(30.0, 0.0, 90.0), 3); // Cube -z face. scene.surfacep[13] = new Triangle(Vector3d(30.0, 0.0, 70.0), Vector3d(30.0, 20.0, 70.0), Vector3d(50.0, 20.0, 70.0), 3); scene.surfacep[14] = new Triangle(Vector3d(30.0, 0.0, 70.0), Vector3d(50.0, 20.0, 70.0), Vector3d(50.0, 0.0, 70.0),3); // Define camera. scene.camera = Camera(Vector3d(150.0, 120.0, 150.0), Vector3d(45.0, 22.0, 55.0), Vector3d(0.0, 1.0, 0.0), (-1.0 * imageWidth) / imageHeight, (1.0 * imageWidth) / imageHeight, -1.0, 1.0, 3.0, imageWidth, imageHeight); } void DefineScene2(Scene &scene, int imageWidth, int imageHeight) { //*********************************************** //*********** WRITE YOUR CODE HERE ************** scene.backgroundColor = Color(0.2f, 0.3f, 0.5f); scene.amLight.I_a = Color(1.0f, 1.0f, 1.0f) * 0.35f; scene.numMaterials = 5; scene.material = new Material[scene.numMaterials]; // Light red. scene.material[0].diffuse = Color(0.8f, 0.4f, 0.4f); scene.material[0].ambient = Color(0.8f, 0.4f, 0.4f); scene.material[0].specluar = Color(0.8f, 0.8f, 0.8f) / 1.5f; scene.material[0].reflection = Color(0.8f, 0.8f, 0.8f) / 3.0f; scene.material[0].shininess = 32.0f; // Light green. scene.material[1].diffuse = Color(0.4f, 0.8f, 0.4f); scene.material[1].ambient = Color(0.4f, 0.8f, 0.4f); scene.material[1].specluar = Color(0.8f, 0.8f, 0.8f) / 1.5f; scene.material[1].reflection = Color(0.8f, 0.8f, 0.8f) / 3.0f; scene.material[1].shininess = 64.0f; // Light blue. scene.material[2].diffuse = Color(0.4f, 0.4f, 0.8f) * 0.9f; scene.material[2].ambient = Color(0.4f, 0.4f, 0.8f) * 0.9f; scene.material[2].specluar = Color(0.8f, 0.8f, 0.8f) / 1.5f; scene.material[2].reflection = Color(0.8f, 0.8f, 0.8f) / 2.5f; scene.material[2].shininess = 64.0f; // Yellow. scene.material[3].diffuse = Color(0.6f, 0.6f, 0.2f); scene.material[3].ambient = Color(0.6f, 0.6f, 0.2f); scene.material[3].specluar = Color(0.8f, 0.8f, 0.8f) / 1.5f; scene.material[3].reflection = Color(0.8f, 0.8f, 0.8f) / 3.0f; scene.material[3].shininess = 64.0f; // Gray. scene.material[4].diffuse = Color(0.6f, 0.6f, 0.6f); scene.material[4].ambient = Color(0.6f, 0.6f, 0.6f); scene.material[4].specluar = Color(0.6f, 0.6f, 0.6f); scene.material[4].reflection = Color(0.8f, 0.8f, 0.8f) / 3.0f; scene.material[4].shininess = 128.0f; scene.numPtLights = 2; scene.ptLight = new PointLightSource[scene.numPtLights]; scene.ptLight[0].I_source = Color(1.0f, 1.0f, 1.0f) * 0.6f; scene.ptLight[0].position = Vector3d(40.0, 220.0, 10.0); scene.ptLight[1].I_source = Color(1.0f, 1.0f, 1.0f) * 0.6f; scene.ptLight[1].position = Vector3d(175.0, 80.0, 60.0); scene.numSurfaces = 20; scene.surfacep = new SurfacePtr[scene.numSurfaces]; scene.surfacep[0] = new Plane(0.0, 1.0, 0.0, 0.0, 3); scene.surfacep[1] = new Plane(0.0, 0.0, 1.0, 0.0, 3); for (int i = 0; i < 14; i++) { scene.surfacep[2 + i] = new Sphere(Vector3d(-320 + 40 * i, 20.0, 80.0 + 20 * sin(M_PI / 1.8 * i)), 20.0, rand() % scene.numMaterials); } scene.surfacep[16] = new Triangle(Vector3d(0.0, 50.0, 0.0), Vector3d(50.0, 0.0, 0.0), Vector3d(0.0, 0.0, 50.0), 0); scene.surfacep[17] = new Triangle(Vector3d(0.0, 50.0, 0.0), Vector3d(-50.0, 0.0, 0.0), Vector3d(0.0, 0.0, 50.0), 0); scene.surfacep[18] = new Triangle(Vector3d(0.0, 50.0, 0.0), Vector3d(-50.0, 0.0, 0.0), Vector3d(50.0, 0.0, 0.0), 0); scene.surfacep[19] = new Triangle(Vector3d(0.0, 0.0, 50.0), Vector3d(-50.0, 0.0, 0.0), Vector3d(50.0, 0.0, 0.0), 0); scene.camera = Camera(Vector3d(300.0, 240.0, 300.0), Vector3d(45.0, 22.0, 55.0), Vector3d(0.0, 1.0, 0.0), (-1.0 * imageWidth) / imageHeight, (1.0 * imageWidth) / imageHeight, -1.0, 1.0, 3.0, imageWidth, imageHeight);; //*********************************************** } } /////////////////////////////////////////////////////////////////////////// // Modeling of Scene 2. /////////////////////////////////////////////////////////////////////////// namespace PBR { void DefineScene3(Scene &scene, int imageWidth, int imageHeight) { scene.backgroundColor = Color(0.2f, 0.3f, 0.5f); scene.amLight.I_a = Color(1.0f, 1.0f, 1.0f) * 0.25f; scene.amLight.direction = Vector3d(1.0f, 1.0f, 0.0f); // Define materials. scene.numMaterials = 5; scene.material = new Material[scene.numMaterials]; Material* mat = reinterpret_cast<Material*>(scene.material); // Light red. scene.material[0].albedo = Color(0.8f, 0.4f, 0.4f); scene.material[0].roughness = 0.15; scene.material[0].metallic = 0.55; //scene.material[0].ambient = Color(0.8f, 0.4f, 0.4f); //scene.material[0].specluar = Color(0.8f, 0.8f, 0.8f) / 1.5f; //scene.material[0].reflection = Color(0.8f, 0.8f, 0.8f) / 3.0f; //scene.material[0].shininess = 32.0f; // Light green. scene.material[1].albedo = Color(0.4f, 0.8f, 0.4f); scene.material[1].roughness = 0.75; scene.material[1].metallic = 0.25; //scene.material[1].ambient = Color(0.4f, 0.8f, 0.4f); //scene.material[1].specluar = Color(0.8f, 0.8f, 0.8f) / 1.5f; //scene.material[1].reflection = Color(0.8f, 0.8f, 0.8f) / 3.0f; //scene.material[1].shininess = 64.0f; // Light blue. scene.material[2].albedo = Color(0.4f, 0.4f, 0.8f) * 0.9f; scene.material[2].roughness = 0.75; scene.material[2].metallic = 0.25; //scene.material[2].ambient = Color(0.4f, 0.4f, 0.8f) * 0.9f; //scene.material[2].specluar = Color(0.8f, 0.8f, 0.8f) / 1.5f; //scene.material[2].reflection = Color(0.8f, 0.8f, 0.8f) / 2.5f; //scene.material[2].shininess = 64.0f; // Yellow. scene.material[3].albedo = Color(0.6f, 0.6f, 0.2f); scene.material[3].roughness = 0.75; scene.material[3].metallic = 0.25; //scene.material[3].ambient = Color(0.6f, 0.6f, 0.2f); //scene.material[3].specluar = Color(0.8f, 0.8f, 0.8f) / 1.5f; //scene.material[3].reflection = Color(0.8f, 0.8f, 0.8f) / 3.0f; //scene.material[3].shininess = 64.0f; // Gray. scene.material[4].albedo = Color(0.6f, 0.6f, 0.6f); scene.material[4].roughness = 0.75; scene.material[4].metallic = 0.25; //scene.material[4].ambient = Color(0.6f, 0.6f, 0.6f); //scene.material[4].specluar = Color(0.6f, 0.6f, 0.6f); //scene.material[4].reflection = Color(0.8f, 0.8f, 0.8f) / 3.0f; //scene.material[4].shininess = 128.0f; scene.numPtLights = 2; scene.ptLight = new PointLightSource[scene.numPtLights]; scene.ptLight[0].I_source = Color(1300.0f, 300.0f, 300.0f); scene.ptLight[0].position = Vector3d(100.0, 120.0, 10.0); scene.ptLight[1].I_source = Color(300.0f, 300.0f, 300.0f); scene.ptLight[1].position = Vector3d(5.0, 80.0, 60.0); // Define surface primitives. scene.numSurfaces = 15; scene.surfacep = new SurfacePtr[scene.numSurfaces]; scene.surfacep[0] = new Plane(0.0, 1.0, 0.0, 0.0, 2); // Horizontal plane. scene.surfacep[1] = new Plane(1.0, 0.0, 0.0, 0.0, 3); // Left vertical plane. scene.surfacep[2] = new Plane(0.0, 0.0, 1.0, 0.0, 3); // Right vertical plane. scene.surfacep[3] = new Sphere(Vector3d(40.0, 20.0, 42.0), 22.0, 0); // Big sphere. scene.surfacep[4] = new Sphere(Vector3d(75.0, 10.0, 40.0), 12.0, 1); // Small sphere. // Cube +y face. scene.surfacep[5] = new Triangle(Vector3d(50.0, 20.0, 90.0), Vector3d(50.0, 20.0, 70.0), Vector3d(30.0, 20.0, 70.0), 3); scene.surfacep[6] = new Triangle(Vector3d(50.0, 20.0, 90.0), Vector3d(30.0, 20.0, 70.0), Vector3d(30.0, 20.0, 90.0), 3); // Cube +x face. scene.surfacep[7] = new Triangle(Vector3d(50.0, 0.0, 70.0), Vector3d(50.0, 20.0, 70.0), Vector3d(50.0, 20.0, 90.0), 3); scene.surfacep[8] = new Triangle(Vector3d(50.0, 0.0, 70.0), Vector3d(50.0, 20.0, 90.0), Vector3d(50.0, 0.0, 90.0), 3); // Cube -x face. scene.surfacep[9] = new Triangle(Vector3d(30.0, 0.0, 90.0), Vector3d(30.0, 20.0, 90.0), Vector3d(30.0, 20.0, 70.0), 3); scene.surfacep[10] = new Triangle(Vector3d(30.0, 0.0, 90.0), Vector3d(30.0, 20.0, 70.0), Vector3d(30.0, 0.0, 70.0), 3); // Cube +z face. scene.surfacep[11] = new Triangle(Vector3d(50.0, 0.0, 90.0), Vector3d(50.0, 20.0, 90.0), Vector3d(30.0, 20.0, 90.0), 3); scene.surfacep[12] = new Triangle(Vector3d(50.0, 0.0, 90.0), Vector3d(30.0, 20.0, 90.0), Vector3d(30.0, 0.0, 90.0), 3); // Cube -z face. scene.surfacep[13] = new Triangle(Vector3d(30.0, 0.0, 70.0), Vector3d(30.0, 20.0, 70.0), Vector3d(50.0, 20.0, 70.0), 3); scene.surfacep[14] = new Triangle(Vector3d(30.0, 0.0, 70.0), Vector3d(50.0, 20.0, 70.0), Vector3d(50.0, 0.0, 70.0), 3); //scene.camera = Camera(Vector3d(0.0, 0.0, 0.0), Vector3d(0.0, 0.0, 10.0), Vector3d(0.0, 1.0, 0.0), // (-1.0 * imageWidth) / imageHeight, (1.0 * imageWidth) / imageHeight, -1.0, 1.0, 3.0, // imageWidth, imageHeight);; scene.camera = Camera(Vector3d(150.0, 120.0, 150.0), Vector3d(45.0, 22.0, 55.0), Vector3d(0.0, 1.0, 0.0), (-1.0 * imageWidth) / imageHeight, (1.0 * imageWidth) / imageHeight, -1.0, 1.0, 3.0, imageWidth, imageHeight); } }
39.546474
186
0.568627
HuCoco
fae5e30f76170ab17e3504fc5740c20e0de08435
6,769
hpp
C++
include/codegen/include/System/IO/MemoryStream.hpp
Futuremappermydud/Naluluna-Modifier-Quest
bfda34370764b275d90324b3879f1a429a10a873
[ "MIT" ]
1
2021-11-12T09:29:31.000Z
2021-11-12T09:29:31.000Z
include/codegen/include/System/IO/MemoryStream.hpp
Futuremappermydud/Naluluna-Modifier-Quest
bfda34370764b275d90324b3879f1a429a10a873
[ "MIT" ]
null
null
null
include/codegen/include/System/IO/MemoryStream.hpp
Futuremappermydud/Naluluna-Modifier-Quest
bfda34370764b275d90324b3879f1a429a10a873
[ "MIT" ]
2
2021-10-03T02:14:20.000Z
2021-11-12T09:29:36.000Z
// Autogenerated from CppHeaderCreator on 7/27/2020 3:09:44 PM // Created by Sc2ad // ========================================================================= #pragma once #pragma pack(push, 8) // Begin includes #include "utils/typedefs.h" // Including type: System.IO.Stream #include "System/IO/Stream.hpp" #include "utils/il2cpp-utils.hpp" // Completed includes // Begin forward declares // Forward declaring namespace: System::Threading::Tasks namespace System::Threading::Tasks { // Forward declaring type: Task`1<TResult> template<typename TResult> class Task_1; } // Forward declaring namespace: System::IO namespace System::IO { // Forward declaring type: SeekOrigin struct SeekOrigin; } // Completed forward declares // Type namespace: System.IO namespace System::IO { // Autogenerated type: System.IO.MemoryStream class MemoryStream : public System::IO::Stream { public: // private System.Byte[] _buffer // Offset: 0x28 ::Array<uint8_t>* buffer; // private System.Int32 _origin // Offset: 0x30 int origin; // private System.Int32 _position // Offset: 0x34 int position; // private System.Int32 _length // Offset: 0x38 int length; // private System.Int32 _capacity // Offset: 0x3C int capacity; // private System.Boolean _expandable // Offset: 0x40 bool expandable; // private System.Boolean _writable // Offset: 0x41 bool writable; // private System.Boolean _exposable // Offset: 0x42 bool exposable; // private System.Boolean _isOpen // Offset: 0x43 bool isOpen; // private System.Threading.Tasks.Task`1<System.Int32> _lastReadTask // Offset: 0x48 System::Threading::Tasks::Task_1<int>* lastReadTask; // public System.Void .ctor(System.Int32 capacity) // Offset: 0x1124474 static MemoryStream* New_ctor(int capacity); // public System.Void .ctor(System.Byte[] buffer) // Offset: 0x112457C static MemoryStream* New_ctor(::Array<uint8_t>* buffer); // public System.Void .ctor(System.Byte[] buffer, System.Boolean writable) // Offset: 0x1124584 static MemoryStream* New_ctor(::Array<uint8_t>* buffer, bool writable); // private System.Void EnsureWriteable() // Offset: 0x11246A4 void EnsureWriteable(); // private System.Boolean EnsureCapacity(System.Int32 value) // Offset: 0x112475C bool EnsureCapacity(int value); // public System.Byte[] GetBuffer() // Offset: 0x1124858 ::Array<uint8_t>* GetBuffer(); // System.Byte[] InternalGetBuffer() // Offset: 0x11248F4 ::Array<uint8_t>* InternalGetBuffer(); // System.Int32 InternalGetPosition() // Offset: 0x11179AC int InternalGetPosition(); // System.Int32 InternalReadInt32() // Offset: 0x1116E44 int InternalReadInt32(); // System.Int32 InternalEmulateRead(System.Int32 count) // Offset: 0x11179DC int InternalEmulateRead(int count); // public System.Int32 get_Capacity() // Offset: 0x11248FC int get_Capacity(); // public System.Void set_Capacity(System.Int32 value) // Offset: 0x1124934 void set_Capacity(int value); // public System.Byte[] ToArray() // Offset: 0x112506C ::Array<uint8_t>* ToArray(); // public System.Void .ctor() // Offset: 0x112446C // Implemented from: System.IO.Stream // Base method: System.Void Stream::.ctor() // Base method: System.Void MarshalByRefObject::.ctor() // Base method: System.Void Object::.ctor() static MemoryStream* New_ctor(); // public override System.Boolean get_CanRead() // Offset: 0x112468C // Implemented from: System.IO.Stream // Base method: System.Boolean Stream::get_CanRead() bool get_CanRead(); // public override System.Boolean get_CanSeek() // Offset: 0x1124694 // Implemented from: System.IO.Stream // Base method: System.Boolean Stream::get_CanSeek() bool get_CanSeek(); // public override System.Boolean get_CanWrite() // Offset: 0x112469C // Implemented from: System.IO.Stream // Base method: System.Boolean Stream::get_CanWrite() bool get_CanWrite(); // protected override System.Void Dispose(System.Boolean disposing) // Offset: 0x11246D0 // Implemented from: System.IO.Stream // Base method: System.Void Stream::Dispose(System.Boolean disposing) void Dispose(bool disposing); // public override System.Void Flush() // Offset: 0x1124854 // Implemented from: System.IO.Stream // Base method: System.Void Stream::Flush() void Flush(); // public override System.Int64 get_Length() // Offset: 0x1124AB0 // Implemented from: System.IO.Stream // Base method: System.Int64 Stream::get_Length() int64_t get_Length(); // public override System.Int64 get_Position() // Offset: 0x1124AEC // Implemented from: System.IO.Stream // Base method: System.Int64 Stream::get_Position() int64_t get_Position(); // public override System.Void set_Position(System.Int64 value) // Offset: 0x1124B24 // Implemented from: System.IO.Stream // Base method: System.Void Stream::set_Position(System.Int64 value) void set_Position(int64_t value); // public override System.Int32 Read(System.Byte[] buffer, System.Int32 offset, System.Int32 count) // Offset: 0x1124C04 // Implemented from: System.IO.Stream // Base method: System.Int32 Stream::Read(System.Byte[] buffer, System.Int32 offset, System.Int32 count) int Read(::Array<uint8_t>*& buffer, int offset, int count); // public override System.Int32 ReadByte() // Offset: 0x1124E54 // Implemented from: System.IO.Stream // Base method: System.Int32 Stream::ReadByte() int ReadByte(); // public override System.Int64 Seek(System.Int64 offset, System.IO.SeekOrigin loc) // Offset: 0x1124ECC // Implemented from: System.IO.Stream // Base method: System.Int64 Stream::Seek(System.Int64 offset, System.IO.SeekOrigin loc) int64_t Seek(int64_t offset, System::IO::SeekOrigin loc); // public override System.Void Write(System.Byte[] buffer, System.Int32 offset, System.Int32 count) // Offset: 0x1125124 // Implemented from: System.IO.Stream // Base method: System.Void Stream::Write(System.Byte[] buffer, System.Int32 offset, System.Int32 count) void Write(::Array<uint8_t>* buffer, int offset, int count); // public override System.Void WriteByte(System.Byte value) // Offset: 0x1125434 // Implemented from: System.IO.Stream // Base method: System.Void Stream::WriteByte(System.Byte value) void WriteByte(uint8_t value); }; // System.IO.MemoryStream } DEFINE_IL2CPP_ARG_TYPE(System::IO::MemoryStream*, "System.IO", "MemoryStream"); #pragma pack(pop)
38.68
108
0.684592
Futuremappermydud
fae74ef5c8696a64df54c136f27a86b36f484544
4,586
cpp
C++
src/fit_nfw_mass.cpp
sjtuzyk/chandra-acis-analysis
8d194c8107ba2e91b35eba95c044ac238ce03229
[ "MIT" ]
3
2016-05-28T00:32:55.000Z
2022-02-28T13:36:04.000Z
src/fit_nfw_mass.cpp
sjtuzyk/chandra-acis-analysis
8d194c8107ba2e91b35eba95c044ac238ce03229
[ "MIT" ]
null
null
null
src/fit_nfw_mass.cpp
sjtuzyk/chandra-acis-analysis
8d194c8107ba2e91b35eba95c044ac238ce03229
[ "MIT" ]
1
2018-10-09T16:42:18.000Z
2018-10-09T16:42:18.000Z
/* Fitting nfw mass profile model Author: Junhua Gu Last modification 20120721 */ #include "nfw.hpp" #include <core/optimizer.hpp> #include <core/fitter.hpp> #include <data_sets/default_data_set.hpp> #include "chisq.hpp" #include <methods/powell/powell_method.hpp> #include <iostream> #include <fstream> #include <vector> #include <string> using namespace opt_utilities; using namespace std; const double cm=1; const double kpc=3.08568e+21*cm; const double pi=4*atan(1); static double calc_critical_density(double z, const double H0=2.3E-18, const double Omega_m=.27) { const double G=6.673E-8;//cm^3 g^-1 s^2 const double E=std::sqrt(Omega_m*(1+z)*(1+z)*(1+z)+1-Omega_m); const double H=H0*E; return 3*H*H/8/pi/G; } int main(int argc,char* argv[]) { if(argc<3) { cerr<<"Usage:"<<argv[0]<<" <data file with 4 columns of x, xe, y, ye> <z> [rmin in kpc]"<<endl; return -1; } double rmin_kpc=1; if(argc>=4) { rmin_kpc=atof(argv[3]); } double z=0; z=atof(argv[2]); //define the fitter fitter<double,double,vector<double>,double,std::string> fit; //define the data set default_data_set<double,double> ds; //open the data file ifstream ifs(argv[1]); //cout<<"read serr 2"<<endl; ofstream ofs_fit_result("nfw_fit_result.qdp"); ofs_fit_result<<"read serr 1 2"<<endl; ofs_fit_result<<"skip single"<<endl; ofs_fit_result<<"line off"<<endl; ofs_fit_result<<"li on 2"<<endl; ofs_fit_result<<"li on 4"<<endl; ofs_fit_result<<"ls 2 on 4"<<endl; ofs_fit_result<<"win 1"<<endl; ofs_fit_result<<"yplot 1 2"<<endl; ofs_fit_result<<"loc 0 0 1 1"<<endl; ofs_fit_result<<"vie .1 .4 .9 .9"<<endl; ofs_fit_result<<"la y Mass (solar)"<<endl; ofs_fit_result<<"log x"<<endl; ofs_fit_result<<"log y"<<endl; ofs_fit_result<<"win 2"<<endl; ofs_fit_result<<"yplot 3 4"<<endl; ofs_fit_result<<"loc 0 0 1 1"<<endl; ofs_fit_result<<"vie .1 .1 .9 .4"<<endl; ofs_fit_result<<"la x radius (kpc)"<<endl; ofs_fit_result<<"la y chi"<<endl; ofs_fit_result<<"log x"<<endl; ofs_fit_result<<"log y off"<<endl; for(;;) { //read radius, temperature and error double r,re,m,me; ifs>>r>>re>>m>>me; if(!ifs.good()) { break; } if(r<rmin_kpc) { continue; } data<double,double> d(r,m,me,me,re,re); ofs_fit_result<<r<<"\t"<<re<<"\t"<<m<<"\t"<<me<<endl; ds.add_data(d); } ofs_fit_result<<"no no no"<<endl; //load data fit.load_data(ds); //define the optimization method fit.set_opt_method(powell_method<double,vector<double> >()); //use chi^2 statistic fit.set_statistic(chisq<double,double,vector<double>,double,std::string>()); fit.set_model(nfw<double>()); //fit.set_param_value("rs",4); //fit.set_param_value("rho0",100); fit.fit(); fit.fit(); vector<double> p=fit.fit(); //output parameters ofstream ofs_param("nfw_param.txt"); for(size_t i=0;i<fit.get_num_params();++i) { cout<<fit.get_param_info(i).get_name()<<"\t"<<fit.get_param_info(i).get_value()<<endl; ofs_param<<fit.get_param_info(i).get_name()<<"\t"<<fit.get_param_info(i).get_value()<<endl; } cout<<"reduced chi^2="<<fit.get_statistic_value()<<endl; ofs_param<<"reduced chi^2="<<fit.get_statistic_value()<<endl; ofstream ofs_model("nfw_dump.qdp"); ofstream ofs_overdensity("overdensity.qdp"); //const double G=6.673E-8;//cm^3 g^-1 s^-2 //static const double mu=1.4074; //static const double mp=1.67262158E-24;//g static const double M_sun=1.98892E33;//g //static const double k=1.38E-16; double xmax=0; for(double x=std::max(rmin_kpc,ds.get_data(0).get_x());;x+=1) { double model_value=fit.eval_model(x,p); ofs_model<<x<<"\t"<<model_value<<endl; ofs_fit_result<<x<<"\t0\t"<<model_value<<"\t0"<<endl; double V=4./3.*pi*pow(x*kpc,3); double m=model_value*M_sun; double rho=m/V;//g/cm^3 double over_density=rho/calc_critical_density(z); ofs_overdensity<<x<<"\t"<<over_density<<endl; xmax=x; if(over_density<100) { break; } } ofs_fit_result<<"no no no"<<endl; for(size_t i=0;i<ds.size();++i) { data<double,double> d=ds.get_data(i); double x=d.get_x(); double y=d.get_y(); double ye=d.get_y_lower_err(); double ym=fit.eval_model(x,p); ofs_fit_result<<x<<"\t"<<0<<"\t"<<(y-ym)/ye<<"\t"<<1<<endl; } ofs_fit_result<<"no no no"<<endl; for(double x=std::max(rmin_kpc,ds.get_data(0).get_x());x<xmax;x+=1) { ofs_fit_result<<x<<"\t"<<0<<"\t"<<0<<"\t"<<0<<endl; } }
28.6625
101
0.635194
sjtuzyk
fae829b646f33987f6861dfb4ed9ba638c78fc09
6,365
cpp
C++
core/src/cubos/core/data/yaml_deserializer.cpp
GameDevTecnico/cubos
51f89c9f3afc8afe502d167dadecab7dfe5b1c7b
[ "MIT" ]
2
2021-09-28T14:13:27.000Z
2022-03-26T11:36:48.000Z
core/src/cubos/core/data/yaml_deserializer.cpp
GameDevTecnico/cubos
51f89c9f3afc8afe502d167dadecab7dfe5b1c7b
[ "MIT" ]
72
2021-09-29T08:55:26.000Z
2022-03-29T21:21:00.000Z
core/src/cubos/core/data/yaml_deserializer.cpp
GameDevTecnico/cubos
51f89c9f3afc8afe502d167dadecab7dfe5b1c7b
[ "MIT" ]
null
null
null
#include <cubos/core/data/yaml_deserializer.hpp> using namespace cubos::core::data; YAMLDeserializer::YAMLDeserializer(memory::Stream& stream) : Deserializer(stream) { this->loadDocument(); this->frame.push({Mode::Object, this->document.begin(), false}); } #define READ_PRIMITIVE(T, value) \ do \ { \ auto iter = this->get(); \ if (this->frame.top().mode == Mode::Dictionary) \ { \ if (this->frame.top().key) \ value = iter->first.as<T>(T()); \ else \ value = iter->second.as<T>(T()); \ this->frame.top().key = !this->frame.top().key; \ } \ else if (this->frame.top().mode == Mode::Object) \ value = iter->second.as<T>(T()); \ else \ value = iter->as<T>(T()); \ } while (false) void YAMLDeserializer::readI8(int8_t& value) { int16_t v; READ_PRIMITIVE(int16_t, v); if (v < INT8_MIN || v > INT8_MAX) value = 0; else value = v; } void YAMLDeserializer::readI16(int16_t& value) { READ_PRIMITIVE(int16_t, value); } void YAMLDeserializer::readI32(int32_t& value) { READ_PRIMITIVE(int32_t, value); } void YAMLDeserializer::readI64(int64_t& value) { READ_PRIMITIVE(int64_t, value); } void YAMLDeserializer::readU8(uint8_t& value) { uint16_t v; READ_PRIMITIVE(uint16_t, v); if (v > UINT8_MAX) value = 0; else value = v; } void YAMLDeserializer::readU16(uint16_t& value) { READ_PRIMITIVE(uint16_t, value); } void YAMLDeserializer::readU32(uint32_t& value) { READ_PRIMITIVE(uint32_t, value); } void YAMLDeserializer::readU64(uint64_t& value) { READ_PRIMITIVE(uint64_t, value); } void YAMLDeserializer::readF32(float& value) { READ_PRIMITIVE(float, value); } void YAMLDeserializer::readF64(double& value) { READ_PRIMITIVE(double, value); } void YAMLDeserializer::readBool(bool& value) { READ_PRIMITIVE(bool, value); } void YAMLDeserializer::readString(std::string& value) { READ_PRIMITIVE(std::string, value); } void YAMLDeserializer::beginObject() { auto iter = this->get(); if (this->frame.top().mode == Mode::Array) { assert(iter->IsMap()); this->frame.push({Mode::Object, iter->begin(), false}); } else { // Objects can't be used as keys in dictionaries. assert(this->frame.top().mode != Mode::Dictionary || !this->frame.top().key); assert(iter->second.IsMap()); this->frame.push({Mode::Object, iter->second.begin(), false}); } } void YAMLDeserializer::endObject() { assert(this->frame.size() > 1); this->frame.pop(); this->frame.top().key = true; } size_t YAMLDeserializer::beginArray() { auto iter = this->get(); if (this->frame.top().mode == Mode::Array) { assert(iter->IsSequence()); this->frame.push({Mode::Array, iter->begin(), false}); return iter->size(); } else { // Arrays can't be used as keys in dictionaries. assert(this->frame.top().mode != Mode::Dictionary || !this->frame.top().key); assert(iter->second.IsSequence()); this->frame.push({Mode::Array, iter->second.begin(), false}); return iter->second.size(); } } void YAMLDeserializer::endArray() { assert(this->frame.size() > 1); this->frame.pop(); this->frame.top().key = true; } size_t YAMLDeserializer::beginDictionary() { auto iter = this->get(); if (this->frame.top().mode == Mode::Array) { assert(iter->IsMap()); this->frame.push({Mode::Dictionary, iter->begin(), true}); return iter->size(); } else { // Dictionaries can't be used as keys in dictionaries. assert(this->frame.top().mode != Mode::Dictionary || !this->frame.top().key); if (iter->second.IsNull()) { this->frame.push({Mode::Dictionary, iter->second.begin(), true}); return 0; } else { assert(iter->second.IsMap()); this->frame.push({Mode::Dictionary, iter->second.begin(), true}); return iter->second.size(); } } } void YAMLDeserializer::endDictionary() { assert(this->frame.size() > 1); this->frame.pop(); this->frame.top().key = true; } void YAMLDeserializer::loadDocument() { std::string content; this->stream.readUntil(content, "..."); this->document = YAML::Load(content); } YAML::const_iterator YAMLDeserializer::get() { // If this is the top frame and there aren't more elements to read, read another document. if (this->frame.size() == 1 && this->frame.top().iter == this->document.end()) { this->loadDocument(); this->frame.top().iter = this->document.begin(); } if (this->frame.top().mode != Mode::Dictionary || !this->frame.top().key) return this->frame.top().iter++; else return this->frame.top().iter; }
31.20098
120
0.462215
GameDevTecnico
fae9de7af953f4dca197aa688e893a5308825d02
4,396
cpp
C++
src/main/backtest.cpp
fakecoinbase/ondra-novakslashmmbot
750989fcd382f4aaf5eccaa176145d9090fee1a3
[ "MIT" ]
null
null
null
src/main/backtest.cpp
fakecoinbase/ondra-novakslashmmbot
750989fcd382f4aaf5eccaa176145d9090fee1a3
[ "MIT" ]
null
null
null
src/main/backtest.cpp
fakecoinbase/ondra-novakslashmmbot
750989fcd382f4aaf5eccaa176145d9090fee1a3
[ "MIT" ]
null
null
null
#include <imtjson/value.h> #include "backtest.h" #include <cmath> #include "istatsvc.h" #include "mtrader.h" #include "sgn.h" using TradeRec=IStatSvc::TradeRecord; using Trade=IStockApi::Trade; using Ticker=IStockApi::Ticker; BTTrades backtest_cycle(const MTrader_Config &cfg, BTPriceSource &&priceSource, const IStockApi::MarketInfo &minfo, std::optional<double> init_pos, double balance, bool fill_atprice) { std::optional<BTPrice> price = priceSource(); if (!price.has_value()) return {}; BTTrades trades; Strategy s = cfg.strategy; BTTrade bt; bt.price = *price; double pos; if (init_pos.has_value() ) { pos = *init_pos; if (minfo.invert_price) pos = -pos; }else { pos = s.calcInitialPosition(minfo,bt.price.price,0,balance); if (!minfo.leverage) balance -= pos * bt.price.price; } trades.push_back(bt); double pl = 0; double minsize = std::max(minfo.min_size, cfg.min_size); int cont = 0; const std::uint64_t sliding_spread_wait = cfg.spread_calc_sma_hours *50000; const std::uint64_t delayed_alert_wait = cfg.accept_loss * 3600000; bool rep; for (price = priceSource();price.has_value();price = priceSource()) { cont = 0; if (std::abs(price->price-bt.price.price) == 0) continue; do { rep = false; double p = price->price; Ticker tk{p,p,p,price->time}; double pchange = pos * (p - bt.price.price);; pl = pl + pchange; if (minfo.leverage) balance = balance + pchange; double dir = p>bt.price.price?-1:1; bool checksl = false; if (balance > 0) { s.onIdle(minfo,tk,pos,balance); double mult = dir>0?cfg.buy_mult:cfg.sell_mult; Strategy::OrderData order = s.getNewOrder(minfo, p, p, dir, pos, balance); bool allowAlert = (cfg.alerts || (cfg.dynmult_sliding && price->time - bt.price.time > sliding_spread_wait)) || (cfg.delayed_alerts && price->time - bt.price.time >delayed_alert_wait); checksl = order.alert == IStrategy::Alert::forced || order.alert == IStrategy::Alert::stoploss; if (cfg.zigzag && !trades.empty()){ const auto &l = trades.back(); if (order.size * l.size < 0 && std::abs(order.size)<std::abs(l.size)) { order.size = -l.size; } } Strategy::adjustOrder(dir, mult, allowAlert, order); order.size = IStockApi::MarketInfo::adjValue(order.size,minfo.asset_step,round); if (std::abs(order.size) < minsize) { order.size = 0; } if (cfg.max_size && std::abs(order.size) > cfg.max_size) { order.size = cfg.max_size*sgn(order.size); } if (!minfo.leverage) { double chg = order.size*p; if (balance - chg < 0 || pos + order.size < 0) { order.size = 0; chg = 0; } balance -= chg; pos += order.size; } else { pos += order.size; } auto tres = s.onTrade(minfo, p, order.size, pos, balance); bt.neutral_price = tres.neutralPrice; bt.norm_accum += tres.normAccum; bt.norm_profit += tres.normProfit; bt.open_price = tres.openPrice; bt.size = order.size; } else { bt.neutral_price = 0; bt.norm_accum += 0; bt.norm_profit += 0; bt.size = 0; pos = 0; } bt.price.price = p; bt.price.time = price->time; bt.pl = pl; bt.pos = pos; bt.norm_profit_total = bt.norm_profit + bt.norm_accum * p; trades.push_back(bt); if (checksl) { if (fill_atprice) { Strategy::OrderData order = s.getNewOrder(minfo, bt.price.price, bt.price.price*(1+0.1*dir) , -dir, pos, balance); Strategy::adjustOrder(-dir, 1.0,false, order); if (order.price == bt.price.price && order.size) { order.size = IStockApi::MarketInfo::adjValue(order.size,minfo.asset_step,round); if (std::abs(order.size) >= minsize) { pos += order.size; if (!minfo.leverage) balance -= order.size*p; auto tres = s.onTrade(minfo, p, order.size, pos, balance); bt.neutral_price = tres.neutralPrice; bt.norm_accum += tres.normAccum; bt.norm_profit += tres.normProfit; bt.open_price = tres.openPrice; bt.size = order.size; bt.pl = pl; bt.pos = pos; trades.push_back(bt); } } } } } while (cont%16 && rep); } if (minfo.invert_price) { for (auto &&x: trades) { x.neutral_price = 1.0/x.neutral_price; x.open_price = 1.0/x.open_price; x.pos = -x.pos; x.price.price = 1.0/x.price.price; x.size = -x.size; } } return trades; }
30.741259
184
0.633076
fakecoinbase
faed0b70a32e4ccb4b8acc35375a591abfcdb756
1,878
cc
C++
lib/libfaeris/src/stage/layer/FsColorLayer.cc
NosicLin/Faeris
018fddccc875fb63347673edef3ad2ff80c87149
[ "MIT" ]
null
null
null
lib/libfaeris/src/stage/layer/FsColorLayer.cc
NosicLin/Faeris
018fddccc875fb63347673edef3ad2ff80c87149
[ "MIT" ]
null
null
null
lib/libfaeris/src/stage/layer/FsColorLayer.cc
NosicLin/Faeris
018fddccc875fb63347673edef3ad2ff80c87149
[ "MIT" ]
null
null
null
#include "stage/layer/FsColorLayer.h" #include "graphics/FsRender.h" #include "graphics/material/FsMat_V4F_C4F.h" NS_FS_BEGIN ColorLayer* ColorLayer::create() { ColorLayer* ret=new ColorLayer; return ret; } ColorLayer* ColorLayer::create(Color c) { ColorLayer* ret=new ColorLayer; ret->setColor(c); return ret; } void ColorLayer::setColor(Color c) { m_color=c; } Color ColorLayer::getColor() { return m_color; } Matrix4 ColorLayer::getProjectMatrix() { return Matrix4(); } void ColorLayer::draw(Render* r) { if(m_scissorEnabled) { r->setScissorEnabled(true); r->setScissorArea(m_scissorArea.x,m_scissorArea.y,m_scissorArea.width,m_scissorArea.height); } Mat_V4F_C4F* material=Mat_V4F_C4F::shareMaterial(); material->setOpacity(1.0); Matrix4 mat; mat.makeOrthographic(0,1,0,1,-100,100); r->setProjectionMatrix(&mat); r->setMaterial(material); r->setActiveTexture(0); r->disableAllAttrArray(); int pos_loc=material->getV4FLocation(); int color_loc=material->getC4FLocation(); static Vector3 vv[4]= { Vector3(0,0,0), Vector3(1,0,0), Vector3(1,1,0), Vector3(0,1,0), }; float vc[16]= { m_color.r/255.0f,m_color.g/255.0f,m_color.b/255.0f,m_color.a/255.0f, m_color.r/255.0f,m_color.g/255.0f,m_color.b/255.0f,m_color.a/255.0f, m_color.r/255.0f,m_color.g/255.0f,m_color.b/255.0f,m_color.a/255.0f, m_color.r/255.0f,m_color.g/255.0f,m_color.b/255.0f,m_color.a/255.0f, }; Face3 faces[2]= { Face3(0,1,2), Face3(2,3,0), }; r->setAndEnableVertexAttrPointer(pos_loc,3,FS_FLOAT,4,0,vv); r->setAndEnableVertexAttrPointer(color_loc,4,FS_FLOAT,4,0,vc); r->drawFace3(faces,2); if(m_scissorEnabled) { r->setScissorEnabled(false); } } const char* ColorLayer::className() { return FS_COLOR_LAYER_CLASS_NAME; } ColorLayer::ColorLayer() { m_color=Color(255,255,255,135); } ColorLayer::~ColorLayer() { } NS_FS_END
17.229358
94
0.716187
NosicLin
faef7604eb30a14e7a8f67c09fdf2d958271e48b
30,671
cpp
C++
AgreementGINA2.cpp
assarbad/agreementgina2
70cd2f676018108efe923387de7acf5b882f3d13
[ "BSD-3-Clause" ]
null
null
null
AgreementGINA2.cpp
assarbad/agreementgina2
70cd2f676018108efe923387de7acf5b882f3d13
[ "BSD-3-Clause" ]
null
null
null
AgreementGINA2.cpp
assarbad/agreementgina2
70cd2f676018108efe923387de7acf5b882f3d13
[ "BSD-3-Clause" ]
null
null
null
/****************************************************************************** ****************************************************************************** *** *** *** Application/DLL class implementation. *** *** It contains all the utility functions and DLL initialization. *** *** *** ****************************************************************************** ****************************************************************************** _\\|//_ (` * * ') ______________________________ooO_(_)_Ooo_____________________________________ ****************************************************************************** ****************************************************************************** *** *** *** Copyright (c) 2003 - 2005 by -=Assarbad=- *** *** *** *** *** *** CONTACT TO THE AUTHOR(S): *** *** ____________________________________ *** *** | | *** *** | -=Assarbad=- aka Oliver | *** *** |____________________________________| *** *** | | *** *** | Assarbad@gmx.info|.net|.com|.de | *** *** | ICQ: 281645 | *** *** | AIM: nixlosheute | *** *** | nixahnungnicht | *** *** | MSN: Assarbad@ePost.de | *** *** | YIM: sherlock_holmes_and_dr_watson | *** *** |____________________________________| *** *** ___ *** *** / | || || *** *** / _ | ________ ___ ____||__ ___ __|| *** *** / /_\ | / __/ __// |/ _/| \ / | / | *** *** / ___ |__\\__\\ / /\ || | | /\ \/ /\ |/ /\ | DOT NET *** *** /_/ \_/___/___/ /_____\|_| |____/_____\\__/\| *** *** ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ *** *** [http://assarbad.net | http://assarbad.org | http://assarbad.info] *** *** *** *** Notes: *** *** - my first name is Oliver, you may well use this in your e-mails *** *** - for questions and/or proposals drop me a mail or instant message *** *** *** ***~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~*** *** May the source be with you, stranger ... ;) *** *** Snizhok, eto ne tolko fruktovij kefir, snizhok, eto stil zhizn. *** *** Vsem Privet iz Germanij *** *** *** *** Greets from -=Assarbad=- fly to YOU =) *** *** Special greets fly 2 Nico, Casper, SA, Pizza, Navarion, Eugen, Zhenja, *** *** Xandros, Melkij, Strelok etc pp. *** *** *** *** Thanks to: *** *** W.A. Mozart, Vivaldi, Beethoven, Poeta Magica, Kurtzweyl, Manowar, *** *** Blind Guardian, Weltenbrand, In Extremo, Wolfsheim, Carl Orff, Zemfira *** *** ... most of my work was done with their music in the background ;) *** *** *** ****************************************************************************** ****************************************************************************** LEGAL STUFF: ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ Copyright (c) 2003-2005, -=Assarbad=- ["copyright holder(s)"] All rights reserved. Redistribution and use in source and binary forms, with or without modification, are permitted provided that the following conditions are met: 1. Redistributions of source code must retain the above copyright notice, this list of conditions and the following disclaimer. 2. Redistributions in binary form must reproduce the above copyright notice, this list of conditions and the following disclaimer in the documentation and/or other materials provided with the distribution. 3. The name(s) of the copyright holder(s) may not be used to endorse or promote products derived from this software without specific prior written permission. THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE REGENTS OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ .oooO Oooo. ____________________________( )_____( )___________________________________ \ ( ) / \_) (_/ ******************************************************************************/ #include "stdafx.h" #include "AgreementGINA2.h" #include <WinWlx.h> // NOTE: This line is a hardcoded reference to an MFC header file // this path may need to be changed to refer to the location of your VC // install for successful compilation. #include <..\src\occimpl.h> #include "CustomClientSite.h" #ifdef _DEBUG #define new DEBUG_NEW #undef THIS_FILE static char THIS_FILE[] = __FILE__; #endif #include "version.h" ///////////////////////////////////////////////////////////////////////////// // CAgreementGINA2App BEGIN_MESSAGE_MAP(CAgreementGINA2App, CWinApp) //{{AFX_MSG_MAP(CAgreementGINA2App) // NOTE - the ClassWizard will add and remove mapping macros here. // DO NOT EDIT what you see in these blocks of generated code! //}}AFX_MSG_MAP END_MESSAGE_MAP() ///////////////////////////////////////////////////////////////////////////// // CAgreementGINA2App construction CAgreementGINA2App::CAgreementGINA2App() : m_SocketsInitialised(FALSE), m_threadUsername(LPCTSTR(NULL)), m_threadDomain(LPCTSTR(NULL)), m_threadToken(NULL), m_threadIsGuest(FALSE), m_threadIsAdmin(FALSE), m_dllName(LPCTSTR(NULL)), sGinaPath(_T("msgina.dll")), m_MajorVer(0), m_MinorVer(0), m_ListenPortChanged(FALSE), sServer(INVALID_SOCKET) { GetModuleName(m_dllName); DWORD dwVersion = GetVersion(); m_MajorVer = DWORD(LOBYTE(LOWORD(dwVersion))); m_MinorVer = DWORD(HIBYTE(LOWORD(dwVersion))); m_SocketsInitialised = WSAStartup(0x0202, &wsaData) == 0; // We commit suicide if we are on Windows 9x/Me if (dwVersion & 0x80000000) // Why is that? ExitProcess(0); } CAgreementGINA2App::~CAgreementGINA2App() { if(m_SocketsInitialised) WSACleanup(); } ///////////////////////////////////////////////////////////////////////////// // The one and only CAgreementGINA2App object CAgreementGINA2App theApp; ///////////////////////////////////////////////////////////////////////////// // CAgreementGINA2App initialization BOOL CAgreementGINA2App::InitInstance() { // To override the client site CCustomOccManager *pMgr = new CCustomOccManager; CoInitialize(NULL); AfxEnableControlContainer(pMgr); // Standard initialization #ifdef _AFXDLL Enable3dControls(); // Call this when using MFC in a shared DLL #else Enable3dControlsStatic(); // Call this when linking to MFC statically #endif // Restore taskman settings in case we couldn't do this due to powerdown or something RestoreTaskman(); ReadConfig(); ListenPortChangedReset(); return TRUE; } BOOL CAgreementGINA2App::IsRequiredVersion() { return (m_MajorVer >= 5); } HMODULE CAgreementGINA2App::GetModuleHandle() { MEMORY_BASIC_INFORMATION mbi; static int iDummy; VirtualQuery(&iDummy, &mbi, sizeof(mbi)); return HMODULE(mbi.AllocationBase); } void CAgreementGINA2App::GetModuleName(CString& str) { DWORD dwRet = 0, dwSize = MAX_PATH; while(true) { LPTSTR buf = str.GetBuffer(dwSize * sizeof(TCHAR)); dwRet = ::GetModuleFileName(GetModuleHandle(), buf, dwSize); str.ReleaseBuffer(); if(dwRet < dwSize) break; else dwSize *= 2; } int iPos = str.ReverseFind('\\'); if (iPos != -1) str = str.Mid(iPos + 1); } void CAgreementGINA2App::RunDlg() { AFX_MANAGE_STATE(AfxGetStaticModuleState()); CAgreementDlg dlg; dlg.DoModal(); } CString CAgreementGINA2App::GetDllName() { return m_dllName; } BOOL CAgreementGINA2App::EncryptAndStorePassword(LPCTSTR key, LPCTSTR passwd) { // Assumes UNICODE is defined CString realkey = key; CString password = passwd; LSA_OBJECT_ATTRIBUTES lsaOA; LSA_HANDLE handle; ACCESS_MASK desiredAccess = POLICY_CREATE_SECRET | GENERIC_WRITE; NTSTATUS ret; LSA_UNICODE_STRING usKey, usPassword; memset(&lsaOA, 0, sizeof(lsaOA)); ret = LsaOpenPolicy(NULL, &lsaOA, desiredAccess, &handle); if(LsaNtStatusToWinError(ret) == ERROR_SUCCESS) { usKey.Length = lstrlen(realkey) * sizeof(TCHAR); usKey.MaximumLength = usKey.Length; usKey.Buffer = realkey.GetBuffer(usKey.Length); usPassword.Length = (lstrlen(password) + 1) * sizeof(TCHAR); usPassword.MaximumLength = usPassword.Length; usPassword.Buffer = password.GetBuffer(usPassword.Length); LsaStorePrivateData(handle, &usKey, &usPassword); password.ReleaseBuffer(); realkey.ReleaseBuffer(); LsaClose(handle); return TRUE; } else return FALSE; } BOOL CAgreementGINA2App::DecryptAndRetrievePassword(LPCTSTR key, CString& password) { // Assumes UNICODE is defined CString realkey = key; LSA_OBJECT_ATTRIBUTES lsaOA; LSA_HANDLE handle; ACCESS_MASK desiredAccess = POLICY_GET_PRIVATE_INFORMATION | GENERIC_READ; NTSTATUS ret; LSA_UNICODE_STRING usKey, *usPassword = NULL; memset(&lsaOA, 0, sizeof(lsaOA)); ret = LsaOpenPolicy(NULL, &lsaOA, desiredAccess, &handle); if(LsaNtStatusToWinError(ret) == ERROR_SUCCESS) { usKey.Length = lstrlen(realkey) * sizeof(TCHAR); usKey.MaximumLength = usKey.Length; usKey.Buffer = realkey.GetBuffer(usKey.Length / sizeof(TCHAR)); LsaRetrievePrivateData(handle, &usKey, &usPassword); if(usPassword != NULL) { password = usPassword->Buffer; } else password = LPCTSTR(NULL); LsaFreeMemory(usPassword); realkey.ReleaseBuffer(); LsaClose(handle); return TRUE; } else return FALSE; } void CAgreementGINA2App::ReadConfig(GinaCfg& cfg) { CRegKeyEx key; key.Open(HKEY_LOCAL_MACHINE, WinlogonKey); key.Open(key.m_hKey, ThisName); cfg.AdminSkips = key.ReadBool(sAdminSkips); cfg.BtnNoText = key.ReadString(sBtnNoText); cfg.BtnYesText = key.ReadString(sBtnYesText); cfg.CheckBoxText = key.ReadString(sCheckBoxText); cfg.HTML_file = key.ReadString(sHTML_file); cfg.ListenPort = key.ReadDWORD(sListenPort); SetListenPort(cfg.ListenPort); cfg.MaintenanceMode = key.ReadBool(sMaintenanceMode); cfg.MaintenanceText = key.ReadString(sMaintenanceText); cfg.NewsActive = key.ReadBool(sNewsActive); cfg.NewsText = key.ReadString(sNewsText); cfg.ShowTimer = key.ReadBool(sShowTimer); cfg.TimerDuration = key.ReadDWORD(sTimerDuration); // Override to admin logon holding down the shift key cfg.AllowOnlyGuest = key.ReadBool(sAllowOnlyGuest); // If the registry value for guest name and password exists, put into // password stash if (key.ValueExists(sGuestName)) EncryptAndStorePassword(ThisName_User, key.ReadString(sGuestName)); if (key.ValueExists(sGuestPassword)) EncryptAndStorePassword(ThisName_Passwd, key.ReadString(sGuestPassword)); if (key.ValueExists(sGuestDomain)) EncryptAndStorePassword(ThisName_Domain, key.ReadString(sGuestDomain)); // ... afterwards delete the registry values key.DeleteValue(sGuestName); key.DeleteValue(sGuestPassword); key.DeleteValue(sGuestDomain); // Restrictions only apply to non-admin users cfg.DisableLockWorkstation = key.ReadBool(sDisableLockWorkstation); cfg.DisableChangePassword = key.ReadBool(sDisableChangePassword); cfg.DisableTaskMgr = key.ReadDWORD(sDisableTaskMgr); if (cfg.DisableTaskMgr > 2) cfg.DisableTaskMgr = 1; cfg.ReplacementTaskMgr = key.ReadString(sReplacementTaskMgr); key.Close(); } void CAgreementGINA2App::ReadConfig() { ReadConfig(m_Configuration); } void CAgreementGINA2App::WriteConfig(GinaCfg& cfg) { CRegKeyEx key; key.Open(HKEY_LOCAL_MACHINE, WinlogonKey); key.Open(key.m_hKey, ThisName); key.SetValue(DWORD(cfg.AdminSkips), sAdminSkips); key.SetValue(cfg.BtnNoText, sBtnNoText); key.SetValue(cfg.BtnYesText, sBtnYesText); key.SetValue(cfg.CheckBoxText, sCheckBoxText); key.SetValue(cfg.HTML_file, sHTML_file); key.SetValue(DWORD(cfg.ListenPort), sListenPort); key.SetValue(DWORD(cfg.MaintenanceMode), sMaintenanceMode); key.SetValue(cfg.MaintenanceText, sMaintenanceText); key.SetValue(DWORD(cfg.NewsActive), sNewsActive); key.SetValue(cfg.NewsText, sNewsText); key.SetValue(DWORD(cfg.ShowTimer), sShowTimer); key.SetValue(DWORD(cfg.TimerDuration), sTimerDuration); // Override to admin logon holding down the shift key key.SetValue(DWORD(cfg.AllowOnlyGuest), sAllowOnlyGuest); // Restrictions only apply to non-admin users key.SetValue(DWORD(cfg.DisableLockWorkstation), sDisableLockWorkstation); key.SetValue(DWORD(cfg.DisableChangePassword), sDisableChangePassword); key.SetValue(DWORD(cfg.DisableTaskMgr), sDisableTaskMgr); key.SetValue(cfg.ReplacementTaskMgr, sReplacementTaskMgr); key.Close(); } void CAgreementGINA2App::WriteConfig() { WriteConfig(m_Configuration); } BOOL CAgreementGINA2App::IsAdmin(HANDLE hToken) { PSID pAdminSid = NULL; PTOKEN_GROUPS pGroups; DWORD cbSize = 0; BOOL bSuccess = FALSE; SID_IDENTIFIER_AUTHORITY siaNtAuth = SECURITY_NT_AUTHORITY; // Retrieve required size GetTokenInformation(hToken, TokenGroups, NULL, 0, &cbSize); pGroups = PTOKEN_GROUPS(malloc(cbSize)); // Check for successful allocation if(pGroups != NULL) __try { // Get the token information if (!GetTokenInformation (hToken, TokenGroups, (LPVOID)pGroups, cbSize, &cbSize)) return FALSE; // Build generic admin SID if (!AllocateAndInitializeSid(&siaNtAuth,2, SECURITY_BUILTIN_DOMAIN_RID, DOMAIN_ALIAS_RID_ADMINS, 0,0,0,0,0,0, &pAdminSid)) return FALSE; // Compare each of the contained SIDs for (DWORD i = 0; (i < pGroups->GroupCount) && !bSuccess; i++) if (EqualSid(pAdminSid, pGroups->Groups[i].Sid)) bSuccess = TRUE; // Free the allocated SID FreeSid(pAdminSid); } __finally { free(pGroups); } return bSuccess; } BOOL CAgreementGINA2App::RetrieveOriginalGinaFunctions() { #define MSGINAPROC(y, x) m_GINA.pf.pf##x = (y)GetProcAddress(m_GINA.hOldGina, #x) if(m_GINA.hOldGina == NULL) m_GINA.hOldGina = LoadLibrary(sGinaPath); if (m_GINA.hOldGina != NULL) { memset(&m_GINA.pf, 0, sizeof(m_GINA.pf)); MSGINAPROC(PFWLXNEGOTIATE, WlxNegotiate); MSGINAPROC(PFWLXINITIALIZE, WlxInitialize); MSGINAPROC(PFWLXDISPLAYSASNOTICE, WlxDisplaySASNotice); MSGINAPROC(PFWLXLOGGEDOUTSAS, WlxLoggedOutSAS); MSGINAPROC(PFWLXACTIVATEUSERSHELL, WlxActivateUserShell); MSGINAPROC(PFWLXLOGGEDONSAS, WlxLoggedOnSAS); MSGINAPROC(PFWLXDISPLAYLOCKEDNOTICE, WlxDisplayLockedNotice); MSGINAPROC(PFWLXWKSTALOCKEDSAS, WlxWkstaLockedSAS); MSGINAPROC(PFWLXISLOCKOK, WlxIsLockOk); MSGINAPROC(PFWLXISLOGOFFOK, WlxIsLogoffOk); MSGINAPROC(PFWLXLOGOFF, WlxLogoff); MSGINAPROC(PFWLXSHUTDOWN, WlxShutdown); // New for version 1.1 MSGINAPROC(PFWLXSCREENSAVERNOTIFY, WlxScreenSaverNotify); MSGINAPROC(PFWLXSTARTAPPLICATION, WlxStartApplication); // New for 1.3 MSGINAPROC(PFWLXNETWORKPROVIDERLOAD, WlxNetworkProviderLoad); MSGINAPROC(PFWLXDISPLAYSTATUSMESSAGE, WlxDisplayStatusMessage); MSGINAPROC(PFWLXGETSTATUSMESSAGE, WlxGetStatusMessage); MSGINAPROC(PFWLXREMOVESTATUSMESSAGE, WlxRemoveStatusMessage); // New for 1.4 MSGINAPROC(PFWLXGETCONSOLESWITCHCREDENTIALS, WlxGetConsoleSwitchCredentials); MSGINAPROC(PFWLXRECONNECTNOTIFY, WlxReconnectNotify); MSGINAPROC(PFWLXDISCONNECTNOTIFY, WlxDisconnectNotify); if ( m_GINA.pf.pfWlxNegotiate != NULL && m_GINA.pf.pfWlxInitialize != NULL && m_GINA.pf.pfWlxDisplaySASNotice != NULL && m_GINA.pf.pfWlxLoggedOutSAS != NULL && m_GINA.pf.pfWlxActivateUserShell != NULL && m_GINA.pf.pfWlxLoggedOnSAS != NULL && m_GINA.pf.pfWlxDisplayLockedNotice != NULL && m_GINA.pf.pfWlxWkstaLockedSAS != NULL && m_GINA.pf.pfWlxIsLockOk != NULL && m_GINA.pf.pfWlxIsLogoffOk != NULL && m_GINA.pf.pfWlxLogoff != NULL && m_GINA.pf.pfWlxShutdown != NULL ) m_GINA.dwSupportedVersion = WLX_VERSION_1_0; if ( m_GINA.pf.pfWlxScreenSaverNotify != NULL && m_GINA.pf.pfWlxStartApplication != NULL ) m_GINA.dwSupportedVersion = WLX_VERSION_1_2; if ( m_GINA.pf.pfWlxNetworkProviderLoad != NULL && m_GINA.pf.pfWlxDisplayStatusMessage != NULL && m_GINA.pf.pfWlxGetStatusMessage != NULL && m_GINA.pf.pfWlxRemoveStatusMessage != NULL ) m_GINA.dwSupportedVersion = WLX_VERSION_1_3; if ( m_GINA.pf.pfWlxGetConsoleSwitchCredentials != NULL && m_GINA.pf.pfWlxReconnectNotify != NULL && m_GINA.pf.pfWlxDisconnectNotify != NULL ) m_GINA.dwSupportedVersion = WLX_VERSION_1_4; if(m_GINA.dwSupportedVersion == 0) return FALSE; return TRUE; } else return FALSE; } void CAgreementGINA2App::SetFunctions(HANDLE hWlx, LPCTSTR lpWinsta, PVOID pWinlogonFunctions) { m_GINA.OrigWinlogonFunctions = PWLX_DISPATCH_VERSION_CURRENT(pWinlogonFunctions); m_GINA.hWinlogon = hWlx; m_GINA.sWindowStation = lpWinsta; // Temporary variable DWORD dwSize = 0; // Check the supported version switch(m_GINA.dwSupportedVersion) { case WLX_VERSION_1_0: dwSize = sizeof(WLX_DISPATCH_VERSION_1_0); break; case WLX_VERSION_1_1: dwSize = sizeof(WLX_DISPATCH_VERSION_1_1); break; case WLX_VERSION_1_2: dwSize = sizeof(WLX_DISPATCH_VERSION_1_2); break; case WLX_VERSION_1_3: dwSize = sizeof(WLX_DISPATCH_VERSION_1_3); break; case WLX_VERSION_1_4: dwSize = sizeof(WLX_DISPATCH_VERSION_1_4); break; } // Copy original dispatch table to private area memcpy(&m_GINA.PassWinlogonFunctions, m_GINA.OrigWinlogonFunctions, dwSize); } MyGINA& CAgreementGINA2App::GINA() { return m_GINA; } GinaCfg& CAgreementGINA2App::GetCfg() { return m_Configuration; } HANDLE CAgreementGINA2App::GetToken() { return m_threadToken; } BOOL CAgreementGINA2App::IsStringURL(CString& str) { if (str.IsEmpty()) { str.LoadString(IDS_ABOUTBLANK); return TRUE; } return (str[0] != _T('<') && str.Find(_T('\n')) == -1); } void CAgreementGINA2App::ReplaceAutologonCredentials() { #define READREGCREDENTIALS(x) if (m_BC.key->ValueExists(s##x)) \ { \ m_BC.b##x = TRUE; \ m_BC.x = m_BC.key->ReadString(s##x); \ } // Check whether an old instance exists if(m_BC.key) delete m_BC.key; // Create new instance m_BC.key = new CRegKeyEx(); if(!m_BC.key) return; m_BC.key->Open(HKEY_LOCAL_MACHINE, WinlogonKey); // Read registry values READREGCREDENTIALS(DefaultDomainName); READREGCREDENTIALS(DefaultUserName); READREGCREDENTIALS(AutoAdminLogon); READREGCREDENTIALS(ForceAutoLogon); // Try both: registry and secret stash if (m_BC.key->ValueExists(sDefaultPassword)) { m_BC.bDefaultPasswordReg = TRUE; m_BC.DefaultPasswordReg = m_BC.key->ReadString(sDefaultPassword); } m_BC.bDefaultPasswordStash = DecryptAndRetrievePassword(sDefaultPassword, m_BC.DefaultPasswordStash); // Set the values for autologon! m_BC.key->DeleteValue(sDefaultPassword); m_BC.key->SetValue(_T("1"), sAutoAdminLogon); m_BC.key->SetValue(_T("1"), sForceAutoLogon); CString user, pass, domain; DecryptAndRetrievePassword(ThisName_User, user); DecryptAndRetrievePassword(ThisName_Passwd, pass); DecryptAndRetrievePassword(ThisName_Domain, domain); m_BC.key->SetValue(domain, sDefaultDomainName); m_BC.key->SetValue(user, sDefaultUserName); if (m_BC.bDefaultPasswordStash) // Set the value in the secret stash if a value existed there already! EncryptAndStorePassword(sDefaultPassword, pass); else // ... else set value in registry m_BC.key->SetValue(pass, sDefaultPassword); } void CAgreementGINA2App::RestoreAutologonCredentials() { #define WRITEREGCREDENTIALS(x) if (m_BC.b##x) \ m_BC.key->SetValue(m_BC.x, s##x); \ else \ m_BC.key->DeleteValue(s##x); if(!m_BC.key) return; WRITEREGCREDENTIALS(DefaultDomainName); WRITEREGCREDENTIALS(DefaultUserName); WRITEREGCREDENTIALS(AutoAdminLogon); WRITEREGCREDENTIALS(ForceAutoLogon); // Empty or restore value in registry if (m_BC.bDefaultPasswordReg) m_BC.key->SetValue(sDefaultPassword, m_BC.DefaultPasswordReg); \ else m_BC.key->DeleteValue(sDefaultPassword); // Empty or restore value in secret stash if(m_BC.bDefaultPasswordStash) EncryptAndStorePassword(sDefaultPassword, m_BC.DefaultPasswordStash); m_BC.key->Close(); delete m_BC.key; m_BC.key = NULL; } bool CAgreementGINA2App::ReplaceTaskman() { if(IsReplacedTaskman()) RestoreTaskman(); // Don't replace twice! CRegKeyEx TM_key, AG2key; // Forge string CString temp; temp.Format(_T("%s\\%s"), sImageFileExecution, sTaskMgr); // Open AgreementGINA key AG2key.Open(HKEY_LOCAL_MACHINE, WinlogonKey); AG2key.Open(AG2key.m_hKey, ThisName); // Try to open key for Image File Execution Options of taskmgr.exe if (ERROR_SUCCESS == TM_key.Open(HKEY_LOCAL_MACHINE, temp)) { AG2key.Create(AG2key.m_hKey, sDisableTaskMgr); // Check if the value for "Debugger" exists // ... if so, save the old value! if(TM_key.ValueExists(sDebugger)) AG2key.SetValue(TM_key.ReadString(sDebugger), sDebugger); } else { // Create the key for Image File Execution Options of taskmgr.exe TM_key.Create(HKEY_LOCAL_MACHINE, temp); AG2key.DeleteSubKey(sDisableTaskMgr); } // Set new value to be our "replacement" TM_key.SetValue(m_Configuration.ReplacementTaskMgr, sDebugger); // Close key TM_key.Close(); AG2key.Close(); AG2key.Open(HKEY_LOCAL_MACHINE, WinlogonKey); AG2key.Open(AG2key.m_hKey, ThisName); AG2key.SetValue(DWORD(true), sReplacedTaskman); AG2key.Close(); return true; } bool CAgreementGINA2App::RestoreTaskman() { if(!IsReplacedTaskman()) return false; CRegKeyEx TM_key, AG2key; // Forge string CString temp; temp.Format(_T("%s\\%s"), sImageFileExecution, sTaskMgr); // Open AgreementGINA key AG2key.Open(HKEY_LOCAL_MACHINE, WinlogonKey); AG2key.Open(AG2key.m_hKey, ThisName); if(ERROR_SUCCESS == AG2key.Open(AG2key.m_hKey, sDisableTaskMgr)) { // Try to open key for Image File Execution Options of taskmgr.exe TM_key.Create(HKEY_LOCAL_MACHINE, temp); // If the value did exist if(AG2key.ValueExists(sDebugger)) TM_key.SetValue(AG2key.ReadString(sDebugger), sDebugger); else TM_key.DeleteValue(sDebugger); // Remove our persistent state value AG2key.DeleteValue(sDebugger); } else { if(ERROR_SUCCESS == TM_key.Open(HKEY_LOCAL_MACHINE, temp)) { TM_key.DeleteValue(sDebugger); TM_key.Close(); } TM_key.Open(HKEY_LOCAL_MACHINE, sImageFileExecution); TM_key.DeleteSubKey(sTaskMgr); } // Close key TM_key.Close(); AG2key.Close(); AG2key.Open(HKEY_LOCAL_MACHINE, WinlogonKey); AG2key.Open(AG2key.m_hKey, ThisName); AG2key.DeleteValue(sReplacedTaskman); AG2key.DeleteSubKey(sDisableTaskMgr); AG2key.Close(); return true; } bool CAgreementGINA2App::IsReplacedTaskman() { CRegKeyEx AG2key; // Open AgreementGINA key AG2key.Open(HKEY_LOCAL_MACHINE, WinlogonKey); AG2key.Open(AG2key.m_hKey, ThisName); bool result = AG2key.ValueExists(sReplacedTaskman) & AG2key.ReadBool(sReplacedTaskman); AG2key.Close(); return result; } void CAgreementGINA2App::SetUserData(HANDLE hToken, LPCTSTR pszDomain, LPCTSTR pszUserName, BOOL IsGuest) { m_UserinfoLock.Lock(); // BEGIN m_threadUsername = pszUserName; m_threadDomain = pszDomain; m_threadToken = hToken; m_threadIsGuest = IsGuest; if(m_threadToken != NULL) { GetLocalTime(&m_threadTime); m_threadIsAdmin = IsAdmin(hToken); } else { memset(&m_threadTime, 0, sizeof(m_threadTime)); m_threadIsAdmin = FALSE; } // If the token is being set, check for admin // if not admin check whether the taskman should be replaced if(hToken && !IsAdmin(hToken) && (m_Configuration.DisableTaskMgr == 2)) ReplaceTaskman(); // If the token is NULL, restore taskman if it was replaced by us if(!hToken && IsReplacedTaskman()) RestoreTaskman(); m_UserinfoLock.Unlock(); // END } BOOL CAgreementGINA2App::WinsockInited() { return m_SocketsInitialised; } BOOL CAgreementGINA2App::ListenPortChanged() { m_PortLock.Lock(); // BEGIN BOOL ret = m_ListenPortChanged; m_PortLock.Unlock(); // END return ret; } BOOL CAgreementGINA2App::ListenPortChangedReset() { m_PortLock.Lock(); // BEGIN BOOL ret = m_ListenPortChanged; if (ret) { m_ListenPortChanged = FALSE; ret = TRUE; // Yes, port changed } m_PortLock.Unlock(); // END return ret; } void CAgreementGINA2App::SetListenPort(DWORD newPort) { m_PortLock.Lock(); // BEGIN BOOL bChanged = (m_ListenPort != newPort); if(bChanged) { DWORD oldPort = m_ListenPort; m_ListenPort = newPort; m_ListenPortChanged = bChanged; if(oldPort != 0) { // Forcibly close socket to cancel blocking accept closesocket(sServer); sServer = INVALID_SOCKET; } } m_PortLock.Unlock(); // END } WORD CAgreementGINA2App::GetListenPort() { m_PortLock.Lock(); // BEGIN WORD ret = WORD(m_ListenPort); m_PortLock.Unlock(); // END return ret; } void CAgreementGINA2App::WaitPortLock() { m_PortLock.Lock(); m_PortLock.Unlock(); } void CAgreementGINA2App::SendUserData(SOCKET& sClient) { // Socket needs not to be validated before this is being called if(sClient != INVALID_SOCKET) { m_UserinfoLock.Lock(); // BEGIN ReadConfig(); CString temp, temp2, temp3; temp3.Format(_T("%4.4d-%2.2d-%2.2d@%2.2d:%2.2d:%2.2d"), m_threadTime.wYear, m_threadTime.wMonth, m_threadTime.wDay, m_threadTime.wHour, m_threadTime.wMinute, m_threadTime.wSecond); if(m_threadIsAdmin) temp2 += _T("A"); if(m_Configuration.MaintenanceMode) temp2 += _T("M"); if(m_threadIsGuest) temp2 += _T("G"); temp.Format(_T("%s#%s#%s#%s#%s"), m_threadUsername, m_threadDomain, temp3, temp2, _T(VERSION_STR)); m_UserinfoLock.Unlock(); // END DWORD dwSize = temp.GetLength() * 2; LPSTR pc = LPSTR(malloc(dwSize)); memset(pc, 0, dwSize); LPCTSTR uc = temp.GetBuffer(temp.GetLength()); // Now convert from Unicode string to UTF8 string int len = WideCharToMultiByte(CP_UTF8, 0, uc, -1, pc, dwSize - 1, NULL, NULL); temp.ReleaseBuffer(); URL_Encode(pc, len); send(sClient, pc, len, 0); free(pc); } } inline CHAR IntToHex(const CHAR x) { return x < 0xA ? x + 0x30 : x + 0x37; } void CAgreementGINA2App::URL_Encode(LPSTR &pc, int &len) { #define myisalnum(x) ((x >= 'A' && x <= 'Z') || (x >= 'a' && x <= 'z') || (x >= '0' && x <= '9') || (x == '#')) // || x == ':' || x == '@' || x == '-' int newlen = len * 3; LPSTR tempbuf = pc; LPSTR stepbuf = pc = LPSTR(malloc(newlen)); if(!pc) { pc = tempbuf; return; } memset(pc, 0, newlen); for(int i = 0; i < len - 1; i++) { if(myisalnum(tempbuf[i])) *stepbuf++ = tempbuf[i]; else { *stepbuf++ = '%'; *stepbuf++ = IntToHex((tempbuf[i] & 0xF0) >> 4); *stepbuf++ = IntToHex(tempbuf[i] & 0x0F); } } len = stepbuf - pc; free(tempbuf); } void CAgreementGINA2App::CheckAllowUrls(VARIANT FAR* URL, BOOL &Cancel) { const LPCTSTR szHttp = _T("http://"); const LPCTSTR szBlank = _T("about:"); const LPCTSTR szRes = _T("res://%s/"); CString temp = URL->bstrVal; temp = temp.Left(lstrlen(szBlank)); if (temp.CompareNoCase(szBlank) == 0) return; // No action from our side temp = URL->bstrVal; CString temp2; temp2.Format(szRes, ThisApp->GetDllName()); temp = temp.Left(lstrlen(temp2)); if (temp.CompareNoCase(temp2) == 0) return; // No action from our side // Check for HTTP protocol temp = URL->bstrVal; temp = temp.Left(lstrlen(szHttp)); if (temp.CompareNoCase(szHttp) != 0) { ::Beep(200, 200); // We do not allow to visit non-HTTP URLs Cancel = TRUE; return; } }
31.652219
152
0.620651
assarbad
faf1ff3a6b589a91ec2dd8a108f1b268da61e7b8
219
hpp
C++
server/api/include/irods/rsGetHostForPut.hpp
aghsmith/irods
31d48a47a4942df688da94b30aa8a5b5210261bb
[ "BSD-3-Clause" ]
1
2022-03-08T13:00:56.000Z
2022-03-08T13:00:56.000Z
server/api/include/irods/rsGetHostForPut.hpp
selroc/irods
d232c7f3e0154cacc3a115aa50e366a98617b126
[ "BSD-3-Clause" ]
null
null
null
server/api/include/irods/rsGetHostForPut.hpp
selroc/irods
d232c7f3e0154cacc3a115aa50e366a98617b126
[ "BSD-3-Clause" ]
null
null
null
#ifndef RS_GET_HOST_FOR_PUT_HPP #define RS_GET_HOST_FOR_PUT_HPP #include "irods/rcConnect.h" #include "irods/dataObjInpOut.h" int rsGetHostForPut( rsComm_t *rsComm, dataObjInp_t *dataObjInp, char **outHost ); #endif
21.9
82
0.803653
aghsmith
faf21d027e876586b1746651ccc97ca55b23cc10
3,232
cc
C++
sparselets/tile_sparselet_resps_sse_hos.cc
rksltnl/sparselet-release1
bf7977c2b886961c35506184796b04021206b62b
[ "BSD-2-Clause" ]
4
2015-03-23T05:55:23.000Z
2019-03-05T02:18:39.000Z
sparselets/tile_sparselet_resps_sse_hos.cc
rksltnl/sparselet-release1
bf7977c2b886961c35506184796b04021206b62b
[ "BSD-2-Clause" ]
null
null
null
sparselets/tile_sparselet_resps_sse_hos.cc
rksltnl/sparselet-release1
bf7977c2b886961c35506184796b04021206b62b
[ "BSD-2-Clause" ]
10
2015-03-23T05:55:24.000Z
2019-03-05T02:18:51.000Z
#include <sys/types.h> #include "mex.h" #include <xmmintrin.h> const int S = 3; const int NUM_SUB_FILTERS = 4; /* * Hyun Oh Song (song@eecs.berkeley.edu) * Part filter tiling */ static inline void do_sum_sse(double *dst, const double *src, const double *src_end) { while (src != src_end) { _mm_storeu_pd(dst, _mm_add_pd(_mm_loadu_pd(dst), _mm_loadu_pd(src))); src += 2; dst += 2; } } static inline void do_sum(double *dst, const double *src_begin, size_t size) { if ((size % 2) == 0) return do_sum_sse(dst, src_begin, src_begin+size); size_t size2 = (size/2)*2; do_sum_sse(dst, src_begin, src_begin+size2); for (size_t i = size2; i < size; i++) dst[i] += src_begin[i]; } void tile_sparselets(double* Q_ptr, double* P_ptr, int s_dimy, int s_dimx, int out_dimy, int out_dimx, int i){ // Q_ptr points to head of ith filter response // P_ptr points to head of temp array for tiled filter response // 0 | 1 // --+-- // 2 | 3 const int NUM_SUBFILTERS_X = 2; const int NUM_SUBFILTERS_Y = 2; for (int dy = 0; dy < NUM_SUBFILTERS_Y; dy++) { for (int dx = 0; dx < NUM_SUBFILTERS_X; dx++) { double *dst = P_ptr; for (int col = dx*S; col < dx*S + out_dimx; col++) { double *col_ptr = Q_ptr + col*s_dimy + dy*S; #if 1 // SSE version do_sum(dst, col_ptr, out_dimy); dst += out_dimy; #else // Non-SSE version double *col_end = col_ptr + out_dimy; while (col_ptr != col_end) *(dst++) += *(col_ptr++); #endif } Q_ptr += (s_dimy * s_dimx); // Point Q_ptr to next sub-filter } } } void mexFunction(int nlhs, mxArray *plhs[], int nrhs, const mxArray *prhs[]) { if (nrhs != 6) mexErrMsgTxt("Wrong number of inputs"); if (nlhs != 1) mexErrMsgTxt("Wrong number of outputs"); if (mxGetClassID(prhs[0]) != mxDOUBLE_CLASS) mexErrMsgTxt("Invalid input"); const int* Q_dims = mxGetDimensions( prhs[0]); double* Q_ptr = (double*)mxGetPr(prhs[0]); int s_dimy = mxGetScalar(prhs[1]); int s_dimx = mxGetScalar(prhs[2]); int out_dimy = mxGetScalar(prhs[3]); int out_dimx = mxGetScalar(prhs[4]); int num_sub_filters_roots = mxGetScalar(prhs[5]); // Cell array of tiled filter response const int num_filters = (Q_dims[1] - num_sub_filters_roots) / NUM_SUB_FILTERS; mxArray *cell_array_ptr = mxCreateCellArray(1, &num_filters); int numel_ith_filter = Q_dims[0] * NUM_SUB_FILTERS; // Offset the Q pointer to where part filter begins (after roots) Q_ptr += Q_dims[0] * num_sub_filters_roots; // Temp array to hold tiled filter response const int P_dims[2] = {out_dimy, out_dimx}; mxArray* mxP = mxCreateNumericArray(2, P_dims, mxDOUBLE_CLASS, mxREAL); double* P_ptr_init = (double*)mxGetPr(mxP); double* P_ptr = P_ptr_init; for (int i=0; i < num_filters; i++){ tile_sparselets(Q_ptr, P_ptr, s_dimy, s_dimx, out_dimy, out_dimx, i); P_ptr = P_ptr_init; // point back to origin mxSetCell(cell_array_ptr, i, mxDuplicateArray(mxP)); Q_ptr += numel_ith_filter; } plhs[0] = cell_array_ptr; }
30.490566
110
0.625
rksltnl
faf255dce639b4c373b5305e3e13a3fa02f5ed25
10,986
cpp
C++
tests/motionTests.cpp
glumes/Physics3D
38db12a381361d571389a22d2aac77255ef2fbc7
[ "MIT" ]
null
null
null
tests/motionTests.cpp
glumes/Physics3D
38db12a381361d571389a22d2aac77255ef2fbc7
[ "MIT" ]
null
null
null
tests/motionTests.cpp
glumes/Physics3D
38db12a381361d571389a22d2aac77255ef2fbc7
[ "MIT" ]
1
2021-03-28T18:51:10.000Z
2021-03-28T18:51:10.000Z
#include "testsMain.h" #include "compare.h" #include "randomValues.h" #include "../physics/misc/toString.h" #include "estimateMotion.h" #include "../physics/motion.h" #include "../physics/relativeMotion.h" #include "../physics/constraints/hardPhysicalConnection.h" #include "../physics/constraints/motorConstraint.h" #include "../physics/constraints/sinusoidalPistonConstraint.h" #define REMAINS_CONSTANT(v) REMAINS_CONSTANT_TOLERANT(v, 0.005) #define ASSERT(v) ASSERT_TOLERANT(v, 0.005) #define DELTA_T 0.0001 TEST_CASE(testBasicMotion) { Vec3 vel(1.3, 0.7, 0.9); Vec3 angularVel(1.7, 0.9, 1.2); Vec3 point(1.2, -0.5, 0.7); Motion m(vel, angularVel); ASSERT_TOLERANT(m.getVelocityOfPoint(point) == getVelocityBySimulation(m, point, DELTA_T), 0.05); } TEST_CASE(testAdvancedMotion) { Vec3 vel(1.3, 0.7, 0.9); Vec3 angularVel(1.7, 0.9, 1.2); Vec3 accel(7.1, 0.9, -3.8); Vec3 angularAccel(1.8, 0.67, -4.1); Vec3 point(1.2, -0.5, 0.7); Motion m(vel, angularVel, accel, angularAccel); ASSERT_TOLERANT(m.getMotionOfPoint(point) == getMotionBySimulation(m, point, DELTA_T), 0.05); } TEST_CASE(testMotionOfMotorConstraintCorrect) { HardPhysicalConnection connection(std::unique_ptr<HardConstraint>(new ConstantSpeedMotorConstraint(createRandomDouble())), createRandomCFrame(), createRandomCFrame()); connection.update(1.23456789); RelativeMotion calculatedMotion = connection.getRelativeMotion(); CFrame cf1 = connection.getRelativeCFrameToParent(); connection.update(DELTA_T); CFrame cf2 = connection.getRelativeCFrameToParent(); connection.update(DELTA_T); CFrame cf3 = connection.getRelativeCFrameToParent(); ASSERT(calculatedMotion.relativeMotion == estimateMotion(cf1, cf2, cf3, DELTA_T)); } TEST_CASE(testMotionOfPistonConstraintCorrect){ HardPhysicalConnection connection(std::unique_ptr<HardConstraint>(new SinusoidalPistonConstraint(1.0, 5.0, 1.0)), createRandomCFrame(), createRandomCFrame()); connection.update(1.23456789); RelativeMotion calculatedMotion = connection.getRelativeMotion(); CFrame cf1 = connection.getRelativeCFrameToParent(); connection.update(DELTA_T); CFrame cf2 = connection.getRelativeCFrameToParent(); connection.update(DELTA_T); CFrame cf3 = connection.getRelativeCFrameToParent(); ASSERT(calculatedMotion.relativeMotion == estimateMotion(cf1, cf2, cf3, DELTA_T)); } TEST_CASE(testPistonConstraint) { SinusoidalPistonConstraint constraint(1.0, 2.5, 0.7); constraint.update(1.23456789); CFrame cf1 = constraint.getRelativeCFrame(); RelativeMotion relMotion = constraint.getRelativeMotion(); constraint.update(DELTA_T); CFrame cf2 = constraint.getRelativeCFrame(); ASSERT((cf2.getPosition() - cf1.getPosition()) == relMotion.relativeMotion.getVelocity() * DELTA_T); } TEST_CASE(testExtendBegin) { RelativeMotion relMotion = createRandomRelativeMotion(); Vec3 offsetFromBegin = createRandomNonzeroVec3(); RelativeMotion resultingMotion1 = relMotion.extendBegin(offsetFromBegin); RelativeMotion resultingMotion2 = RelativeMotion(Motion(), CFrame(offsetFromBegin)) + relMotion; ASSERT(resultingMotion1 == resultingMotion2); } TEST_CASE(testExtendEnd) { RelativeMotion relMotion = createRandomRelativeMotion(); Vec3 offsetFromEnd = createRandomNonzeroVec3(); RelativeMotion resultingMotion1 = relMotion.extendEnd(offsetFromEnd); RelativeMotion resultingMotion2 = relMotion + RelativeMotion(Motion(), CFrame(offsetFromEnd)); ASSERT(resultingMotion1 == resultingMotion2); } TEST_CASE(testExtendingRelativeMotionCVecCommutes) { RelativeMotion relMotion = createRandomRelativeMotion(); Vec3 offsetFromBegin = createRandomNonzeroVec3(); Vec3 offsetFromEnd = createRandomNonzeroVec3(); RelativeMotion resultingMotion1 = relMotion.extendBegin(offsetFromBegin).extendEnd(offsetFromEnd); RelativeMotion resultingMotion2 = relMotion.extendEnd(offsetFromEnd).extendBegin(offsetFromBegin); ASSERT(resultingMotion1 == resultingMotion2); } TEST_CASE(testExtendingRelativeMotionCFrameCommutes) { RelativeMotion relMotion = createRandomRelativeMotion(); CFrame offsetFromBegin = createRandomCFrame(); CFrame offsetFromEnd = createRandomCFrame(); RelativeMotion resultingMotion1 = relMotion.extendBegin(offsetFromBegin).extendEnd(offsetFromEnd); RelativeMotion resultingMotion2 = relMotion.extendEnd(offsetFromEnd).extendBegin(offsetFromBegin); ASSERT(resultingMotion1 == resultingMotion2); } TEST_CASE(testExtendingRelativeMotionVecCorrect){ RelativeMotion relMotion = createRandomRelativeMotion(); Motion motionOfOrigin = createRandomMotion(); Vec3 offsetFromBegin = createRandomNonzeroVec3(); Vec3 offsetFromEnd = createRandomNonzeroVec3(); // manually compute resulting motion Motion motionOfStartPoint = motionOfOrigin.getMotionOfPoint(offsetFromBegin); Motion motionOfEnd = motionOfStartPoint.getMotionOfPoint(relMotion.locationOfRelativeMotion.getPosition()).addRelativeMotion(relMotion.relativeMotion); RelativeMotion relMotionOfBeginIncluded = relMotion.extendBegin(offsetFromBegin); ASSERT(motionOfEnd == relMotionOfBeginIncluded.applyTo(motionOfOrigin)); } TEST_CASE(testExtendingRelativeMotionCFrameCorrect) { RelativeMotion relMotion = createRandomRelativeMotion(); Motion motionOfOrigin = createRandomMotion(); CFrame offsetFromBegin = createRandomCFrame(); CFrame offsetFromEnd = createRandomCFrame(); // manually compute resulting motion Motion motionOfStartPoint = motionOfOrigin.getMotionOfPoint(offsetFromBegin.getPosition()); Motion rotatedRelativeMotion = localToGlobal(offsetFromBegin.getRotation(), relMotion.relativeMotion); CFrame rotatedOffset = offsetFromBegin.localToRelative(relMotion.locationOfRelativeMotion); Motion motionOfEnd = motionOfStartPoint.getMotionOfPoint(rotatedOffset.getPosition()).addRelativeMotion(rotatedRelativeMotion); RelativeMotion relMotionOfBeginIncluded = relMotion.extendBegin(offsetFromBegin); ASSERT(motionOfEnd == relMotionOfBeginIncluded.applyTo(motionOfOrigin)); } TEST_CASE(testJoiningRelativeMotionCorrect) { RelativeMotion r1 = createRandomRelativeMotion(); RelativeMotion r2 = createRandomRelativeMotion(); Motion motionOfEndPoint = r1.relativeMotion; CFrame offsetForSecondEndPoint = r1.locationOfRelativeMotion.localToRelative(r2.locationOfRelativeMotion); Motion secondMotionInNewSpace = localToGlobal(r1.locationOfRelativeMotion.getRotation(), r2.relativeMotion); Motion motionOfSecondEndPoint = motionOfEndPoint.getMotionOfPoint(offsetForSecondEndPoint.getPosition()) .addRelativeMotion(secondMotionInNewSpace); ASSERT((r1 + r2).locationOfRelativeMotion == offsetForSecondEndPoint + r1.locationOfRelativeMotion.getPosition()); ASSERT((r1 + r2).relativeMotion == motionOfSecondEndPoint); } TEST_CASE(testComplexRelativeMotionAssociative) { Motion m0 = createRandomMotion(); RelativeMotion r1 = createRandomRelativeMotion(); RelativeMotion r2 = createRandomRelativeMotion(); RelativeMotion r3 = createRandomRelativeMotion(); ASSERT((r1 + r2) + r3 == r1 + (r2 + r3)); } TEST_CASE(testReducedRelativeMotionAssociative) { Vec3 piston1Direction = createRandomNonzeroVec3(); Vec3 piston2Direction = createRandomNonzeroVec3(); Vec3 motor1Direction = createRandomNonzeroVec3(); Vec3 motor2Direction = createRandomNonzeroVec3(); RelativeMotion p1(Motion(createRandomNonzeroDouble() * piston1Direction, Vec3(), createRandomNonzeroDouble() * piston1Direction, Vec3()), CFrame(createRandomNonzeroDouble() * piston1Direction)); RelativeMotion p2(Motion(createRandomNonzeroDouble() * piston2Direction, Vec3(), createRandomNonzeroDouble() * piston2Direction, Vec3()), CFrame(createRandomNonzeroDouble() * piston2Direction)); RelativeMotion m1(Motion(Vec3(), createRandomNonzeroDouble() * motor1Direction, Vec3(), createRandomNonzeroDouble() * motor1Direction), CFrame(createRandomNonzeroDouble() * motor1Direction)); RelativeMotion m2(Motion(Vec3(), createRandomNonzeroDouble() * motor2Direction, Vec3(), createRandomNonzeroDouble() * motor2Direction), CFrame(createRandomNonzeroDouble() * motor2Direction)); ASSERT(p1 + p2 == p2 + p1); // pistons are commutative ASSERT((p1 + p2) + m1 == p1 + (p2 + m1)); ASSERT((m1 + m2) + p1 == m1 + (m2 + p1)); ASSERT(((m1 + p1) + m2) + p2 == m1 + (p1 + (m2 + p2))); } TEST_CASE(testSimulateRelativeMotion) { Motion motionOfOrigin = createRandomMotion(); RelativeMotion relMotion = createRandomRelativeMotion(); /*motionOfOrigin.acceleration = Vec3(0, 0, 0); relMotion.relativeMotion.acceleration = Vec3(0, 0, 0); motionOfOrigin.angularAcceleration = Vec3(0, 0, 0); relMotion.relativeMotion.angularAcceleration = Vec3(0, 0, 0); relMotion.relativeMotion.angularVelocity = Vec3(0, 0, 0);*/ //relMotion.relativeMotion.velocity = Vec3(0, 0, 0); Coriolis effect! CFrame origin1 = CFrame(); CFrame origin2 = simulateForTime(motionOfOrigin, CFrame(), DELTA_T); CFrame origin3 = simulateForTime(motionOfOrigin, CFrame(), 2*DELTA_T); CFrame relative1 = relMotion.locationOfRelativeMotion; CFrame relative2 = simulateForTime(relMotion.relativeMotion, relMotion.locationOfRelativeMotion, DELTA_T); CFrame relative3 = simulateForTime(relMotion.relativeMotion, relMotion.locationOfRelativeMotion, 2*DELTA_T); CFrame p1 = origin1.localToGlobal(relative1); CFrame p2 = origin2.localToGlobal(relative2); CFrame p3 = origin3.localToGlobal(relative3); Motion estimatedMotion = estimateMotion(p1, p2, p3, DELTA_T); Motion calculatedMotion = relMotion.applyTo(motionOfOrigin); ASSERT(estimatedMotion == calculatedMotion); } TEST_CASE(testSimulateRelativeToRelativeMotion) { RelativeMotion motionOfOrigin = createRandomRelativeMotion(); RelativeMotion relMotion = createRandomRelativeMotion(); /*motionOfOrigin.acceleration = Vec3(0, 0, 0); relMotion.relativeMotion.acceleration = Vec3(0, 0, 0); motionOfOrigin.angularAcceleration = Vec3(0, 0, 0); relMotion.relativeMotion.angularAcceleration = Vec3(0, 0, 0); relMotion.relativeMotion.angularVelocity = Vec3(0, 0, 0);*/ //relMotion.relativeMotion.velocity = Vec3(0, 0, 0); Coriolis effect! CFrame origin1 = motionOfOrigin.locationOfRelativeMotion; CFrame origin2 = simulateForTime(motionOfOrigin.relativeMotion, motionOfOrigin.locationOfRelativeMotion, DELTA_T); CFrame origin3 = simulateForTime(motionOfOrigin.relativeMotion, motionOfOrigin.locationOfRelativeMotion, 2 * DELTA_T); CFrame relative1 = relMotion.locationOfRelativeMotion; CFrame relative2 = simulateForTime(relMotion.relativeMotion, relMotion.locationOfRelativeMotion, DELTA_T); CFrame relative3 = simulateForTime(relMotion.relativeMotion, relMotion.locationOfRelativeMotion, 2 * DELTA_T); CFrame p1 = origin1.localToGlobal(relative1); CFrame p2 = origin2.localToGlobal(relative2); CFrame p3 = origin3.localToGlobal(relative3); Motion estimatedMotion = estimateMotion(p1, p2, p3, DELTA_T); RelativeMotion calculatedMotion = motionOfOrigin + relMotion; ASSERT(estimatedMotion == calculatedMotion.relativeMotion); ASSERT(p1 == calculatedMotion.locationOfRelativeMotion); }
40.992537
195
0.800291
glumes
faf383ac145713f5dcfd96f09c5a453b058f5fff
15,661
cpp
C++
slyedit/src/main.cpp
Gibbeon/sly
9216cf04a78f1d41af01186489ba6680b9641229
[ "MIT" ]
null
null
null
slyedit/src/main.cpp
Gibbeon/sly
9216cf04a78f1d41af01186489ba6680b9641229
[ "MIT" ]
null
null
null
slyedit/src/main.cpp
Gibbeon/sly
9216cf04a78f1d41af01186489ba6680b9641229
[ "MIT" ]
null
null
null
#include "sly.h" #include "sly/d3d12.h" #include "sly/engine.h" #include "sly/scene.h" //#include "sly/d3d12/gfx/commandlist.h" #include "sly/io/memorystream.h" #include "sly/runtime/serialization/json/jsondeserializer.h" #include "sly/runtime/serialization/json/jsonserializer.h" #if !_WIN32 // MacOS shader const char shadersSrc[] = R"""( #include <metal_stdlib> using namespace metal; vertex float4 VSMain( const device packed_float3* vertexArray [[buffer(0)]], unsigned int vID[[vertex_id]]) { return float4(vertexArray[vID], 1.0); } fragment half4 PSMain() { return half4(1.0, 0.0, 0.0, 1.0); } )"""; #else const char shadersSrc[] = R"""( struct PSInput { float4 position : SV_POSITION; float4 color : COLOR; }; PSInput VSMain(float4 position : POSITION, float4 color : COLOR) { PSInput result; result.position = position; result.color = color; return result; } float4 PSMain(PSInput input) : SV_TARGET { return input.color; } )"""; #endif struct Vec3 { float x, y, z; }; struct Vertex { Vec3 position; sly::gfx::color_t color; }; void configureRenderInterfaces(const sly::Engine& engine) { #ifdef _WIN32 engine.kernel().graphics().interfaces().push_back( sly::d3d12::gfx::GetRenderInterface()); #else engine.kernel().gfx().interfaces().push_back( sly::gfx::METAL::GetRenderInterface()); #endif } #ifdef _WIN32 int WINAPI WinMain(HINSTANCE hInstance, HINSTANCE, LPSTR pszArgs, int nCmdShow) #else int main() #endif { sly::Engine* engine = &sly::Engine(); // load configuration, plugins, etc Ensures(engine->init().succeeded()); configureRenderInterfaces(*engine); // get the first interface auto gfxapi = engine->kernel().graphics().interfaces().at(0); auto window = engine->kernel().windows().create(sly::os::WindowBuilder() .setHeight(768) .setWidth(1024) .setTitle("Hi!") .build()); // window desc auto device = gfxapi->createDevice(); // device desc auto context = device->createRenderContext(*window.result()); window->setVisible(true); engine->activator().add<sly::Entity>(); engine->resources().mount("slyedit/data"); std::shared_ptr<sly::Scene> scene; auto value = engine->resources().find("scene")->create<sly::Scene>(); scene = value.result(); while (true) { // engine->begin(); engine->update(); scene->update(); scene->draw(context); window->processMessages(); context->present(); // engine->draw(); // engine->present(); // engine->end(); } // scene->release(); /*auto list = device->createCommandList(); auto vsshader = device->createShader( sly::gfx::ShaderBuilder() .setData((vptr_t)shadersSrc, sizeof(shadersSrc)) .setEntryPoint("VSMain") .setTarget("vs_5_0") .build() ); auto psshader = device->createShader( sly::gfx::ShaderBuilder() .setData((vptr_t)shadersSrc, sizeof(shadersSrc)) .setEntryPoint("PSMain") .setTarget("ps_5_0") .build() ); auto pVertexData = engine->kernel().filesystem().open("vertex.dat"); size_t vtxsize = pVertexData->stream()->size(); std::unique_ptr<Vertex[]> triangleVertices = std::make_unique<Vertex[]>(vtxsize/sizeof(Vertex)); pVertexData->stream()->read(triangleVertices.get(), vtxsize); pVertexData->close(); auto vertexBuffer = device->createVertexBuffer( sly::gfx::VertexBufferBuilder() .setData(triangleVertices.get(), vtxsize / sizeof(Vertex), sizeof(Vertex)) .build() ); auto rsState = device->createRenderState( sly::gfx::RenderStateBuilder() .setVSShader(vsshader) //renderPipelineDesc.SetVertexFunction(vertFunc); .setPSShader(psshader) //renderPipelineDesc.SetFragmentFunction(fragFunc); .setPrimitiveType(sly::gfx::ePrimitiveType_Triangle) .setRTVFormats(0, sly::gfx::eDataFormat_R8G8B8A8_UNORM) //renderPipelineDesc.GetColorAttachments()[0].SetPixelFormat(mtlpp::PixelFormat::BGRA8Unorm); .addInputElementDesriptor( sly::gfx::InputElementBuilder() .setSemanticName("POSITION") .setFormat(sly::gfx::eDataFormat_R32G32B32_FLOAT) .build() ) .addInputElementDesriptor( sly::gfx::InputElementBuilder() .setSemanticName("COLOR") .setFormat(sly::gfx::eDataFormat_R32G32B32A32_FLOAT) .setOffset(12) .build() ) .build() ); sly::gfx::Viewport viewport(0, 0, 1024, 768); sly::rect_t<> scissorRect(0, 0, 1024, 768); sly::gfx::color_t clearColor(.4f, .4f, .4f, 0.5f); std::vector<sly::gfx::ICommandList*> lists; lists.push_back(list); while(true) { //scene->update(); //list->begin(); //list->setRenderState(rsState); //list->setRenderTarget(context->getDrawBuffer()); //list->clear(clearColor); //list->setViewport(viewport); //list->setScissorRect(scissorRect); //list->setVertexBuffer(vertexBuffer); //list->draw(3, 1, 0, 0); //list->end(); context->update(); context->commandQueue().executeCommandLists(lists); context->commandQueue().flush(); context->present(); } */ // rsState->release(); // psshader->release(); // vsshader->release(); // list->release(); context->release(); device->release(); window->release(); engine->release(); return 0; #ifdef NO engine->filesystem().mount("/data"); sly::Scene* scene = &sly::Scene(engine, context); scene->load("scene"); sly::Stopwatch stopwatch(true); while (true) { delta = stopwatch.reset(); scene->update(delta); context->draw(); context->present(); } stopwatch.stop(); scene->release(); engine->filesystem().unmount("/data"); device->release(); window->release(); gfxapi->release(); engine->release(); // create a device context, this managers resources for the render system auto renderDevice = engine.graphics().createDevice(sly::gfx::DeviceBuilder().build()); if (renderDevice.failed()) { return renderDevice.statusCode(); } sly::gfx::IRenderContext* context = nullptr; renderDevice->createRenderContext(&context, sly::gfx::RenderContextBuilder().build()); // create 1 or more windows // renderDevice->setRender(&window, winBuilder.build()); // create a command list to draw an object sly::gfx::ICommandList* list = nullptr; renderDevice->createCommandList(&list, sly::gfx::CommandListBuilder().build()); sly::gfx::ShaderBuilder psspBuilder; sly::gfx::ShaderBuilder vsspBuilder; sly::gfx::VertexBufferBuilder vbBuilder; sly::gfx::InputElementBuilder posBuilder1; posBuilder1.setSemanticName("POSITION") .setFormat(sly::gfx::eDataFormat_R32G32B32_FLOAT) .setInputScope(sly::gfx::eDataInputClassification_PerVertex); sly::gfx::InputElementBuilder posBuilder2; posBuilder2.setSemanticName("COLOR") .setFormat(sly::gfx::eDataFormat_R32G32B32A32_FLOAT) .setInputScope(sly::gfx::eDataInputClassification_PerVertex) .setOffset(12); Vertex* triangleVertices = nullptr; auto pVertexData = engine.filesystem().open("vertex.dat"); if (pVertexData.failed()) { throw; } size_t vtxsize = pVertexData->stream()->getSize(); triangleVertices = (Vertex*)malloc(vtxsize); pVertexData->stream()->read(triangleVertices, vtxsize); // pVertexData->close(); vbBuilder.setData(triangleVertices, vtxsize / sizeof(Vertex), sizeof(Vertex)); vsspBuilder.setData((vptr_t)shadersSrc, sizeof(shadersSrc)) .setEntryPoint("VSMain") .setName("shaders") .setTarget("vs_5_0"); psspBuilder.setData((vptr_t)shadersSrc, sizeof(shadersSrc)) .setEntryPoint("PSMain") .setName("shaders") .setTarget("ps_5_0"); sly::gfx::IVertexBuffer* vertexBuffer = nullptr; renderDevice->createVertexBuffer(&vertexBuffer, vbBuilder.build()); sly::gfx::IShader* psshader = nullptr; sly::gfx::IShader* vsshader = nullptr; renderDevice->createShader(&vsshader, vsspBuilder.build()); renderDevice->createShader(&psshader, psspBuilder.build()); // render state sly::gfx::RenderStateBuilder rstBuilder; rstBuilder .setVSShader( *vsshader) // renderPipelineDesc.SetVertexFunction(vertFunc); .setPSShader( *psshader) // renderPipelineDesc.SetFragmentFunction(fragFunc); .setSampleMax(UINT_MAX) .setPrimitiveType(sly::gfx::ePrimitiveType_Triangle) .setNumberRenderTargets(1) .setRTVFormats( 0, sly::gfx:: eDataFormat_R8G8B8A8_UNORM) // renderPipelineDesc.GetColorAttachments()[0].SetPixelFormat(mtlpp::PixelFormat::BGRA8Unorm); .setSampleDesc(1) .addInputElementDesriptor(posBuilder1.build()) .addInputElementDesriptor(posBuilder2.build()); // render state // mtlpp::RenderPipelineDescriptor renderPipelineDesc; sly::gfx::IRenderState* rsState = nullptr; renderDevice->createRenderState( &rsState, rstBuilder .build()); // g_renderPipelineState = // g_device.NewRenderPipelineState(renderPipelineDesc, // nullptr); // mtlpp::CommandBuffer commandBuffer = g_commandQueue.CommandBuffer(); // // to get list loop list->begin(); // mtlpp::RenderCommandEncoder // renderCommandEncoder = // commandBuffer.RenderCommandEncoder(renderPassDesc); // list->setRenderState(*rsState); // // renderCommandEncoder.SetRenderPipelineState(g_renderPipelineState); // list->setRenderTarget(context->getDrawBuffer()); // list->setViewport(viewport); // list->setScissorRect(scissorRect); // list->clear(clearColor); // list->setVertexBuffer(*vertexBuffer); // // renderCommandEncoder.SetVertexBuffer(g_vertexBuffer, 0, 0); list->draw(3, // 1, 0, 0); // renderCommandEncoder.Draw(mtlpp::PrimitiveType::Triangle, // 0, 3); list->end(); // renderCommandEncoder.EndEncoding(); // context->processMessages(); // context->getDirectCommandQueue().executeCommandList(list); // // commandBuffer.Present(m_view.GetDrawable()); // context->getDirectCommandQueue().flush(); //commandBuffer.Commit(); // context->swapBuffers(); // commandBuffer.WaitUntilCompleted(); // state sly::gfx::Viewport viewport(0, 0, 1024, 768); sly::rect_t scissorRect(0, 0, 1024, 768); sly::gfx::color_t clearColor(.4f, .4f, .4f, 1.0f); while (true) { #if _WIN32 // loop list->begin(); list->setRenderState(*rsState); list->setRenderTarget(context->getDrawBuffer()); list->setViewport(viewport); list->setScissorRect(scissorRect); list->clear(clearColor); list->setVertexBuffer(*vertexBuffer); list->draw(3, 1, 0, 0); list->end(); context->processMessages(); context->getDirectCommandQueue().executeCommandList(list); context->getDirectCommandQueue().flush(); context->swapBuffers(); #else // 01 - mtlpp::CommandBuffer commandBuffer = \ // g_commandQueue.CommandBuffer(); \ // loop //02 - \ // mtlpp::RenderPassDescriptor renderPassDesc = \ // m_view.GetRenderPassDescriptor(); \ // list->begin(); //03 - mtlpp::RenderCommandEncoder renderCommandEncoder = \ // commandBuffer.RenderCommandEncoder(renderPassDesc); \ // list->setRenderState(*rsState); //04 - \ // renderCommandEncoder.SetRenderPipelineState(g_renderPipelineState); \ // list->setRenderTarget(context->getDrawBuffer()); //08 - \ // commandBuffer.Present(m_view.GetDrawable()); \ // list->setVertexBuffer(*vertexBuffer); //05 - \ // renderCommandEncoder.SetVertexBuffer(g_vertexBuffer, 0, 0); \ // list->draw(3, 1, 0, 0); //06 - \ // renderCommandEncoder.Draw(mtlpp::PrimitiveType::Triangle, 0, 3); // list->end(); //07 - renderCommandEncoder.EndEncoding(); // 09 - commandBuffer.Commit(); context->processMessages(); // context->getDirectCommandQueue().executeCommandList(list); // context->getDirectCommandQueue().flush(); //09 - // commandBuffer.Commit(); context->swapBuffers(); // 10 - commandBuffer.WaitUntilCompleted(); #endif } return 0; #define TEST_ASSETREADER 1 #if !TEST_ASSETREADER #else sly::IInputStream* pShaderJson; sly::Engine::OS().FileSystem().open(&pShaderJson, "shaders.json"); sly::TextReader reader(*pShaderJson); auto j3 = json::parse((const char_t*)reader.readAll()); sly::IInputStream* pShaderFile; sly::Engine::OS().FileSystem().open( &pShaderFile, j3[0]["file"].get<std::string>().c_str()); size_t vssize = pShaderFile->getSize(); char* vsbuf = (char*)malloc(vssize); pShaderFile->read(vsbuf, vssize); vsspBuilder.setData(vsbuf, vssize) .setEntryPoint(j3[0]["entryPoint"].get<std::string>().c_str()) .setName(j3[0]["name"].get<std::string>().c_str()) .setTarget(j3[0]["target"].get<std::string>().c_str()); psspBuilder.setData(vsbuf, vssize) .setEntryPoint(j3[1]["entryPoint"].get<std::string>().c_str()) .setName(j3[1]["name"].get<std::string>().c_str()) .setTarget(j3[1]["target"].get<std::string>().c_str()); /*sly::TypeActivator activator; sly::IInputStream* pVertexData; sly::Engine::OS().FileSystem().open(&pVertexData, "vertex.json"); sly::JSONDeserializer vbReader(pVertexData, activator); sly::gfx::VertexBufferDesc vbDesc = vbReader.read<sly::gfx::VertexBufferDesc>(); pVertexData->close(); vbBuilder.init(vbDesc); sly::IInputStream* pShaderData; sly::Engine::OS().FileSystem().open(&pShaderData, "shaders.json"); sly::JSONDeserializer shaderReader(pShaderData, activator); sly::gfx::ShaderBuilder vsspDesc = shaderReader.read<sly::gfx::ShaderBuilder>(); sly::gfx::ShaderBuilder psspDesc = shaderReader.read<sly::gfx::ShaderBuilder>(); pShaderData->close(); psspBuilder.init(psspDesc); vsspBuilder.init(vsspDesc);*/ #endif while (true) { // loop list->begin(); list->setRenderState(*rsState); list->setRenderTarget(context->getDrawBuffer()); list->setViewport(viewport); list->setScissorRect(scissorRect); list->clear(clearColor); list->setVertexBuffer(*vertexBuffer); list->draw(3, 1, 0, 0); list->end(); context->processMessages(); context->getDirectCommandQueue().executeCommandList(list); context->getDirectCommandQueue().flush(); context->swapBuffers(); } return 0; #endif }
32.092213
138
0.616627
Gibbeon
faf7f48d652d6bf1a536d50b2b6d9cfd801a8b60
1,794
cpp
C++
Practice/2018/2018.6.13/POJ1568.cpp
SYCstudio/OI
6e9bfc17dbd4b43467af9b19aa2aed41e28972fa
[ "MIT" ]
4
2017-10-31T14:25:18.000Z
2018-06-10T16:10:17.000Z
Practice/2018/2018.6.13/POJ1568.cpp
SYCstudio/OI
6e9bfc17dbd4b43467af9b19aa2aed41e28972fa
[ "MIT" ]
null
null
null
Practice/2018/2018.6.13/POJ1568.cpp
SYCstudio/OI
6e9bfc17dbd4b43467af9b19aa2aed41e28972fa
[ "MIT" ]
null
null
null
#include<iostream> #include<cstdio> #include<cstdlib> #include<cstring> #include<algorithm> using namespace std; #define ll long long #define mem(Arr,x) memset(Arr,x,sizeof(Arr)) const int maxN=5; const int inf=2147483647; int mcnt,Win[11]; int Map[4][4]; int dfs(int k1,int k2,int opt); int check(int key); int main() { char opt; for (int cnt=0,i=0;i<4;i++) for (int j=0;j<4;j++) Map[i][j]=(1<<(cnt++)); mcnt=-1; for (int i=0;i<=3;i++) Win[++mcnt]=Map[i][0]|Map[i][1]|Map[i][2]|Map[i][3],Win[++mcnt]=Map[0][i]|Map[1][i]|Map[2][i]|Map[3][i]; Win[++mcnt]=Map[0][0]|Map[1][1]|Map[2][2]|Map[3][3]; Win[++mcnt]=Map[0][3]|Map[1][2]|Map[2][1]|Map[3][0]; while (cin>>opt) { if (opt=='$') break; int key1=0,key2=0; char mp[5]; int cnt=0; for (int i=0;i<=3;i++) { cin>>mp; for (int j=0;j<=3;j++) if (mp[j]=='x') key1|=Map[i][j],cnt++; else if (mp[j]=='o') key2|=Map[i][j],cnt++; } if (cnt<=4) { printf("#####\n"); continue; } bool flag=0; for (int i=0;i<=15;i++) if (((key1&(1<<i))==0)&&((key2&(1<<i))==0)) if (dfs(key1|(1<<i),key2,1)==1){ printf("(%d,%d)\n",i/4,i%4);flag=1;break; } if (flag==0) printf("#####\n"); } return 0; } int dfs(int k1,int k2,int opt) { if ((opt==1)&&(check(k1)==1)) return 1; if ((opt==0)&&(check(k2)==1)) return -1; if ((k1|k2)==(1<<16)-1) return 0; //cout<<"dfs:"<<k1<<" "<<k2<<" "<<opt<<endl; for (int i=0;i<=15;i++) if ( ((k1&(1<<i))==0) && ((k2&(1<<i))==0) ) { if (opt==0) if (dfs(k1|(1<<i),k2,opt^1)==1) return 1; if (opt==1) { int ret=dfs(k1,k2|(1<<i),opt^1); if ((ret==-1)||(ret==0)) return -1; } } if (opt==0) return -1; if (opt==1) return 1; } int check(int key) { for (int i=0;i<=mcnt;i++) if ((key&Win[i])==Win[i]) return 1; return 0; }
20.62069
128
0.506689
SYCstudio
fafd3b66b9deceb94bc9b26a7e498f09b611c710
447
cpp
C++
cppcode/cpp execise/day08/polycond.cpp
jiedou/study
606676ebc3d1fb1a87de26b6609307d71dafec22
[ "Apache-2.0" ]
null
null
null
cppcode/cpp execise/day08/polycond.cpp
jiedou/study
606676ebc3d1fb1a87de26b6609307d71dafec22
[ "Apache-2.0" ]
null
null
null
cppcode/cpp execise/day08/polycond.cpp
jiedou/study
606676ebc3d1fb1a87de26b6609307d71dafec22
[ "Apache-2.0" ]
null
null
null
#include <iostream> using namespace std; class A { public: A (void) { foo (); // this->foo (); } ~A (void) { foo (); // this->foo (); } virtual void foo (void) { cout << "A::foo(void)" << endl; } void bar (void) { foo (); // this->foo (); } }; class B : public A { public: void foo (void) { cout << "B::foo(void)" << endl; } }; int main (void) { B b; /* A a = b; a.foo (); A& r = b; r.foo (); b.bar (); */ return 0; }
12.771429
33
0.47651
jiedou
fafffecd24c19f558ccbfd465dafd1621b3947d5
1,602
cpp
C++
C++/2D_array.cpp
codedoc7/hacktoberfest2021-3
ddf4e173b10d32332b3c6699de70d1e7bee73a68
[ "MIT" ]
2
2021-12-01T03:35:20.000Z
2022-02-11T01:10:22.000Z
C++/2D_array.cpp
codedoc7/hacktoberfest2021-3
ddf4e173b10d32332b3c6699de70d1e7bee73a68
[ "MIT" ]
null
null
null
C++/2D_array.cpp
codedoc7/hacktoberfest2021-3
ddf4e173b10d32332b3c6699de70d1e7bee73a68
[ "MIT" ]
1
2021-10-17T16:24:21.000Z
2021-10-17T16:24:21.000Z
// 2D array #include <iostream> using namespace std; int main() { int arr[6][6]; int count,a,b,max,c,d,e,x,y,i,j; int check[3][3]; count=a=b=c=d=e=0; max= -100; // cout<<max<<endl<<endl; for (int i = 0; i < 6; i++) { for (int j = 0; j < 6; j++) { cin >> arr[i][j]; } } // for (int i = 0; i < 6; i++) { // for (int j = 0; j < 6; j++) { // cout << arr[i][j]; // } // cout<<endl; // } // cout<<max<<endl<<count<<endl<<a<<endl<<b<<endl<<c<<endl<<d<<endl<<e<<endl; i=j=0; for(int i=0;i<4;i++){ c=i; for(int j=0;j<4;j++){ count=0; d=j; for (int x=0;x<3;x++) { for (int y=0;y<3;y++) { a=x+c; b=y+d; check[x][y]=arr[a][b]; e=check[x][y]; count=count+e; if (x==1 && y==0){ count=count-e; } if (x==1 && y==2){ count=count-e; } // cout<<e; e=a=b=0; } } if(count>max){ max=count; // cout<<"Changes"<<endl; } // cout<<endl; // cout<<count<<endl<<max<<endl<<endl; } } // cout<<&e<<endl; cout<<max; return 0; }
24.646154
81
0.28402
codedoc7
4f0177135e5ddd67ef2580a8c0183714d0763353
1,737
cpp
C++
CreateStruct/CreateStruct.cpp
100dlswjd/test
5cada91ebc5154017ece501e581b2106c72a6e4e
[ "MIT" ]
1
2022-01-25T10:43:28.000Z
2022-01-25T10:43:28.000Z
CreateStruct/CreateStruct.cpp
100dlswjd/test
5cada91ebc5154017ece501e581b2106c72a6e4e
[ "MIT" ]
1
2021-07-14T01:23:54.000Z
2021-07-14T11:26:06.000Z
CreateStruct/CreateStruct.cpp
100dlswjd/test
5cada91ebc5154017ece501e581b2106c72a6e4e
[ "MIT" ]
1
2021-07-12T16:37:14.000Z
2021-07-12T16:37:14.000Z
#include<windows.h> LRESULT CALLBACK WndProc(HWND, UINT, WPARAM, LPARAM); HINSTANCE g_hInst; HWND hWndMain; LPCTSTR lpszClass = TEXT("CreateStruct"); struct tag_Param { int x; int y; TCHAR mes[128]; }; tag_Param Param = { 100,100,TEXT("Create Parameter") }; int APIENTRY WinMain(HINSTANCE hInstance, HINSTANCE hPrevInstance, LPSTR lpszCmdParam, int nCmdShow) { HWND hWnd; MSG Message; WNDCLASS WndClass; g_hInst = hInstance; WndClass.cbClsExtra = 0; WndClass.cbWndExtra = 0; WndClass.hbrBackground = (HBRUSH)GetStockObject(COLOR_WINDOW + 1); WndClass.hCursor = LoadCursor(NULL, IDC_ARROW); WndClass.hIcon = LoadIcon(NULL, IDI_APPLICATION); WndClass.hInstance = hInstance; WndClass.lpfnWndProc = WndProc; WndClass.lpszClassName = lpszClass; WndClass.lpszMenuName = NULL; WndClass.style = CS_HREDRAW | CS_VREDRAW; RegisterClass(&WndClass); hWnd = CreateWindow(lpszClass, lpszClass, WS_OVERLAPPEDWINDOW, CW_USEDEFAULT, CW_USEDEFAULT, CW_USEDEFAULT, CW_USEDEFAULT, NULL, (HMENU)NULL, hInstance, NULL); ShowWindow(hWnd, nCmdShow); while (GetMessage(&Message, NULL, 0, 0)) { TranslateMessage(&Message); DispatchMessage(&Message); } return (int)Message.wParam; } LRESULT CALLBACK WndProc(HWND hWnd, UINT iMessage, WPARAM wParam, LPARAM lParam) { HDC hdc; PAINTSTRUCT ps; CREATESTRUCT cs; static tag_Param WndParam; switch (iMessage) { cs = *(LPCREATESTRUCT)lParam; WndParam = *((tag_Param*)(cs.lpCreateParams)); return 0; case WM_PAINT: hdc = BeginPaint(hWnd, &ps); TextOut(hdc, WndParam.x, WndParam.y, WndParam.mes, lstrlen(WndParam.mes)); EndPaint(hWnd, &ps); return 0; case WM_DESTROY: PostQuitMessage(0); return 0; } return(DefWindowProc(hWnd, iMessage, wParam, lParam)); }
25.544118
160
0.743235
100dlswjd
4f01cee9cf6141458ffc1d75a0393c42fbb0d752
2,466
cpp
C++
Jni/Main.cpp
Cos8o/DroidNong
40d5bcb580c20293c50a434f1095340c5c37995b
[ "MIT" ]
1
2021-01-15T11:26:02.000Z
2021-01-15T11:26:02.000Z
Jni/Main.cpp
Cos8o/DroidNong
40d5bcb580c20293c50a434f1095340c5c37995b
[ "MIT" ]
1
2021-01-04T17:01:26.000Z
2021-01-04T17:01:26.000Z
Jni/Main.cpp
Cos8o/DroidNong
40d5bcb580c20293c50a434f1095340c5c37995b
[ "MIT" ]
2
2020-08-01T03:38:18.000Z
2020-10-25T14:53:01.000Z
#include <jni.h> #include <dirent.h> #include <vector> #include <string> #include <algorithm> #include <fstream> #include <sstream> static std::string const LOCAL_PATH("/sdcard/nong"); static std::string const GAME_PATH("/data/data/com.cos8oxx.geometrynong/files"); bool copyFile( std::string const& srcPath, std::string const& dstPath) { std::ifstream src(srcPath, std::ios::binary); std::ofstream dst(dstPath, std::ios::binary); dst << src.rdbuf(); return src && dst; } void removeFile(std::string const& path) { system(("rm " + path).c_str()); } inline std::string getStem(std::string const& path) { std::string filename; auto pos = path.rfind('.'); if (pos != std::string::npos) filename = path.substr(0, pos); return filename; } inline bool isMp3(std::string const& path) { std::string s; std::stringstream ss(path); while (std::getline(ss, s, '.')); return s == "mp3"; } inline bool validNong(std::string const& path) { if (isMp3(path)) { auto const filename = getStem(path); return std::find_if( filename.begin(), filename.end(), [](char c) { return !std::isdigit(c); }) == filename.end(); } return false; } std::vector<std::string> getNongs() { std::vector<std::string> nongList; auto dir = opendir(LOCAL_PATH.c_str()); if (dir) { auto info = readdir(dir); while (info) { if (validNong(info->d_name)) nongList.push_back(info->d_name); info = readdir(dir); } } closedir(dir); return nongList; } JNIEXPORT jint JNI_OnLoad(JavaVM*, void*) { std::ofstream log(LOCAL_PATH + "/log.txt"); auto nongList = getNongs(); if (nongList.size()) { uint32_t nongCounter = 0; for (auto const& path : nongList) { if (copyFile( LOCAL_PATH + '/' + path, GAME_PATH + '/' + path)) { ++nongCounter; } else { log << "Failed to copy nong \"" << path << "\"\n"; } removeFile(LOCAL_PATH + '/' + path); } log << nongCounter << (nongCounter == 1 ? " nong " : " nongs ") << "copied."; } else { log << "No nongs found."; } return JNI_VERSION_1_4; }
19.417323
85
0.523925
Cos8o
4f08d2975084b75570b155e52fcb43e15b6ecf01
12,124
c++
C++
src/extern/inventor/apps/samples/manip/constrainManip.c++
OpenXIP/xip-libraries
9f0fef66038b20ff0c81c089d7dd0038e3126e40
[ "Apache-2.0" ]
2
2020-05-21T07:06:07.000Z
2021-06-28T02:14:34.000Z
src/extern/inventor/apps/samples/manip/constrainManip.c++
OpenXIP/xip-libraries
9f0fef66038b20ff0c81c089d7dd0038e3126e40
[ "Apache-2.0" ]
null
null
null
src/extern/inventor/apps/samples/manip/constrainManip.c++
OpenXIP/xip-libraries
9f0fef66038b20ff0c81c089d7dd0038e3126e40
[ "Apache-2.0" ]
6
2016-03-21T19:53:18.000Z
2021-06-08T18:06:03.000Z
/* * * Copyright (C) 2000 Silicon Graphics, Inc. All Rights Reserved. * * This library is free software; you can redistribute it and/or * modify it under the terms of the GNU Lesser General Public * License as published by the Free Software Foundation; either * version 2.1 of the License, or (at your option) any later version. * * This library is distributed in the hope that it will be useful, * but WITHOUT ANY WARRANTY; without even the implied warranty of * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU * Lesser General Public License for more details. * * Further, this software is distributed without any warranty that it is * free of the rightful claim of any third person regarding infringement * or the like. Any license provided herein, whether implied or * otherwise, applies only to this software file. Patent licenses, if * any, provided herein do not apply to combinations of this program with * other software, or any other product whatsoever. * * You should have received a copy of the GNU Lesser General Public * License along with this library; if not, write to the Free Software * Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA * * Contact information: Silicon Graphics, Inc., 1600 Amphitheatre Pkwy, * Mountain View, CA 94043, or: * * http://www.sgi.com * * For further information regarding this notice, see: * * http://oss.sgi.com/projects/GenInfo/NoticeExplan/ * */ /*---------------------------------------------------------------- * * Read in a scene. Search for draggers and manipulators, * adding constraints to them when found. * * Display the scene in a viewer. *----------------------------------------------------------------*/ #include <stdlib.h> #include <Inventor/SoDB.h> #include <Inventor/actions/SoSearchAction.h> #include <Inventor/nodes/SoSeparator.h> #include <Inventor/nodes/SoTransform.h> #include <Inventor/Xt/SoXt.h> #include <Inventor/Xt/viewers/SoXtExaminerViewer.h> #include <Inventor/draggers/SoDragger.h> #include <Inventor/draggers/SoCenterballDragger.h> #include <Inventor/manips/SoTransformManip.h> #include <Inventor/manips/SoCenterballManip.h> #include <Inventor/nodekits/SoSceneKit.h> typedef struct MyCBStruct { SbVec3f translateMin; SbVec3f translateMax; SbVec3f scaleMin; SbVec3f scaleMax; float rotateMin; float rotateMax; float prevAngle; SbVec3f axis; SbRotation startRotation; SoTransformManip *manip; }; #define CLAMP(v,min,max) v = (v < min) ? min : ((v > max) ? max : v) // Limits translation between translateMin and translateMax void limitTranslation( SoSFVec3f *translation, MyCBStruct *stuff ) { SbVec3f xl = translation->getValue(); CLAMP( xl[0], stuff->translateMin[0], stuff->translateMax[0] ); CLAMP( xl[1], stuff->translateMin[1], stuff->translateMax[1] ); CLAMP( xl[2], stuff->translateMin[2], stuff->translateMax[2] ); if ( xl != translation->getValue() ) (*translation) = xl; } // Limits center between translateMin and translateMax void limitCenter( SoSFVec3f *center, MyCBStruct *stuff ) { SbVec3f xl = center->getValue(); CLAMP( xl[0], stuff->translateMin[0], stuff->translateMax[0] ); CLAMP( xl[1], stuff->translateMin[1], stuff->translateMax[1] ); CLAMP( xl[2], stuff->translateMin[2], stuff->translateMax[2] ); if ( xl != center->getValue() ) (*center) = xl; } // Limits scale between scaleMin and scaleMax // Also doesn't let scale go below 0.0 void limitScale( SoSFVec3f *scaleFactor, MyCBStruct *stuff ) { SbVec3f scl = scaleFactor->getValue(); CLAMP( scl[0], stuff->scaleMin[0], stuff->scaleMax[0] ); CLAMP( scl[1], stuff->scaleMin[1], stuff->scaleMax[1] ); CLAMP( scl[2], stuff->scaleMin[2], stuff->scaleMax[2] ); CLAMP( scl[0], 0, stuff->scaleMax[0] ); CLAMP( scl[1], 0, stuff->scaleMax[1] ); CLAMP( scl[2], 0, stuff->scaleMax[2] ); if ( scl != scaleFactor->getValue() ) (*scaleFactor) = scl; } // Constrains the rotation to go around the initial direction of rotation // until the dragging is complete. // Limits amount of rotation from starting point to within range // rotateMin < theta < rotateMax void limitRotate( SoSFRotation *rotation, MyCBStruct *stuff ) { // First, see if we need to determine the axis of rotation. // We need to do this the first time the dragger rotates, when axis==(0,0,0) if ( stuff->axis == SbVec3f(0,0,0) ) { SbRotation increment = stuff->startRotation.inverse() * rotation->getValue(); increment.getValue( stuff->axis, stuff->prevAngle ); if (stuff->prevAngle == 0.0) { stuff->axis.setValue(0,0,0); return; } } // Now we have an axis of rotation. // Constrain whatever the rotation is to be a rotation about this axis. SbBool madeAChange = FALSE; SbRotation rotSinceStart = stuff->startRotation.inverse() * rotation->getValue(); SbRotation newRotSinceStart; // First, append a rotation that will undo any wobble of our axis. SbVec3f wobbledAxis; rotSinceStart.multVec( stuff->axis, wobbledAxis ); SbRotation undoWobble( wobbledAxis, stuff->axis ); float testAngle; SbVec3f testAxis; undoWobble.getValue( testAxis, testAngle ); if (testAngle > .001) { newRotSinceStart = rotSinceStart * undoWobble; madeAChange = TRUE; } else newRotSinceStart = rotSinceStart; // Next, see what the angle of rotation has been. newRotSinceStart.getValue( testAxis, testAngle ); if ( testAxis.dot( stuff->axis ) < 0.0 ) testAngle *= -1.0; // Make this angle as close as possible to prevAngle while ( stuff->prevAngle - testAngle > 2 * M_PI ) testAngle += M_PI; while ( testAngle - stuff->prevAngle > 2 * M_PI ) testAngle -= M_PI; float clampAngle = testAngle; CLAMP( clampAngle, stuff->rotateMin, stuff->rotateMax ); if ( clampAngle != testAngle ) { newRotSinceStart.setValue( stuff->axis, clampAngle ); madeAChange = TRUE; } stuff->prevAngle = clampAngle; if ( madeAChange ) { SbRotation newFinalRot = stuff->startRotation * newRotSinceStart; (*rotation) = newFinalRot; } } // Dragger Start CB // If there's a rotation field, records the starting rotation. // Clears out the axis. void dragStartCB( void *stuff, SoDragger *dragger ) { MyCBStruct *myStuff = (MyCBStruct *) stuff; myStuff->axis.setValue(0,0,0); myStuff->prevAngle = 0.0; SoField *rotField = dragger->getField( "rotation" ); if ( rotField != NULL ) myStuff->startRotation = ((SoSFRotation *) rotField)->getValue(); else myStuff->startRotation = SbRotation::identity(); } // Manip Value Changed CB // Tells the dragger to limit each of the parent manip's fields: // translation, scaleFactor, and rotation. void manipValueChangedCB( void *stuff, SoDragger *) { MyCBStruct *myStuff = (MyCBStruct *) stuff; SoTransformManip *m = myStuff->manip; if ( !m->isOfType( SoCenterballManip::getClassTypeId() )) limitTranslation( &(m->translation), myStuff ); else limitCenter( &(m->center), myStuff ); limitScale( &(m->scaleFactor), myStuff ); limitRotate( &(m->rotation), myStuff ); } // Dragger Value Changed CB // Limits each of the fields: translation, scaleFactor, and rotation // if they are present. void valueChangedCB( void *stuff, SoDragger *dragger ) { MyCBStruct *myStuff = (MyCBStruct *) stuff; SoField *myField; if ( !dragger->isOfType( SoCenterballDragger::getClassTypeId() )) { myField = dragger->getField( "translation" ); if ( myField != NULL ) limitTranslation( (SoSFVec3f *)myField, myStuff ); } else { myField = dragger->getField( "center" ); if ( myField != NULL ) limitCenter( (SoSFVec3f *)myField, myStuff ); } myField = dragger->getField( "scaleFactor" ); if ( myField != NULL ) limitScale( (SoSFVec3f *)myField, myStuff ); myField = dragger->getField( "rotation" ); if ( myField != NULL ) limitRotate( (SoSFRotation *)myField, myStuff ); } void main(int argc, char **argv) { int curArg = 0; SbBool doConstraints = TRUE; float translateMin = -3.0; float translateMax = 3.0; float scaleMin = 0.0001; float scaleMax = 3.0; float rotateMin = -2.0; float rotateMax = 2.0; char *fileName = NULL; // Try to read the command line... curArg = 1; while (curArg < argc ) { if ( !strcmp(argv[curArg], "-noConstraints")) { curArg++; doConstraints = FALSE; } else if ( !strcmp(argv[curArg], "-translateMin")) { curArg++; sscanf( argv[curArg++], "%f", &translateMin ); } else if ( !strcmp(argv[curArg], "-translateMax")) { curArg++; sscanf( argv[curArg++], "%f", &translateMax ); } else if ( !strcmp(argv[curArg], "-scaleMin")) { curArg++; sscanf( argv[curArg++], "%f", &scaleMin ); } else if ( !strcmp(argv[curArg], "-scaleMax")) { curArg++; sscanf( argv[curArg++], "%f", &scaleMax ); } else { // get the filename fileName = argv[curArg++]; } } Widget myWindow = SoXt::init(argv[0]); if (myWindow == NULL) exit(1); SoSeparator *root = new SoSeparator; root->ref(); SoInput myInput; if (fileName == NULL) fileName = "simpleDraggers.iv"; if ( !myInput.openFile( fileName ) ) { fprintf(stderr, "ERROR - could not open file %s\n", fileName ); fprintf(stderr, "usage-- constrainManip [-noConstraints] ] [-translateMin x] [-translateMax x] [-scaleMin x] [-scaleMax x] [-rotateMin] [-rotateMax] fileName\n"); fprintf(stderr, " where translateMin, translateMax, scaleMin, scaleMax, rotateMin, and rotateMax are constraints to be put on the draggers and manips.\n"); exit(1); } SoSeparator *fileContents = SoDB::readAll( &myInput ); root->addChild(fileContents); // Search for draggers and add constraints. SoSearchAction sa; SoPathList pathList; int i; // Set up values for callback. MyCBStruct *myCBStruct = new MyCBStruct; myCBStruct->translateMin.setValue( translateMin, translateMin, translateMin); myCBStruct->translateMax.setValue( translateMax, translateMax, translateMax); myCBStruct->scaleMin.setValue( scaleMin, scaleMin, scaleMin); myCBStruct->scaleMax.setValue( scaleMax, scaleMax, scaleMax); myCBStruct->rotateMin = rotateMin; myCBStruct->rotateMax = rotateMax; if (doConstraints) { // Add callbacks to all draggers that constrain motion: sa.setType( SoDragger::getClassTypeId() ); sa.setInterest( SoSearchAction::ALL ); sa.apply( root ); pathList = sa.getPaths(); for ( i = 0; i < pathList.getLength(); i++ ) { SoDragger *d = (SoDragger *) (pathList[i])->getTail(); d->addStartCallback(&dragStartCB, myCBStruct); d->addValueChangedCallback(&valueChangedCB, myCBStruct); } // Add callbacks to all transform manips that constrain motion: sa.setType( SoTransformManip::getClassTypeId() ); sa.setInterest( SoSearchAction::ALL ); sa.apply( root ); pathList = sa.getPaths(); for ( i = 0; i < pathList.getLength(); i++ ) { SoTransformManip *m = (SoTransformManip *) (pathList[i])->getTail(); MyCBStruct *cbs = new MyCBStruct; cbs->translateMin.setValue( translateMin, translateMin, translateMin); cbs->translateMax.setValue( translateMax, translateMax, translateMax); cbs->scaleMin.setValue( scaleMin, scaleMin, scaleMin); cbs->scaleMax.setValue( scaleMax, scaleMax, scaleMax); cbs->rotateMin = rotateMin; cbs->rotateMax = rotateMax; cbs->manip = m; SoDragger *d = m->getDragger(); d->addStartCallback(&dragStartCB, cbs); d->addValueChangedCallback(&manipValueChangedCB, cbs); } } SoXtExaminerViewer *myVwr = new SoXtExaminerViewer(myWindow); myVwr->setSceneGraph(root); myVwr->setTitle("Manip Test"); myVwr->viewAll(); myVwr->show(); SoXt::show(myWindow); SoXt::mainLoop(); }
33.216438
168
0.661003
OpenXIP
4f0bb04a4738f1b7b3ca330886ad4b893655850e
4,468
cpp
C++
ProjectGenesis/cloth.cpp
ConspiracyHu/2012SourcePack
e878e3a2ecece26931ad23416d4f856fd5d33540
[ "BSD-2-Clause" ]
115
2015-04-25T14:18:22.000Z
2022-03-31T13:12:00.000Z
ProjectGenesis/cloth.cpp
ConspiracyHu/2012SourcePack
e878e3a2ecece26931ad23416d4f856fd5d33540
[ "BSD-2-Clause" ]
null
null
null
ProjectGenesis/cloth.cpp
ConspiracyHu/2012SourcePack
e878e3a2ecece26931ad23416d4f856fd5d33540
[ "BSD-2-Clause" ]
13
2015-10-21T02:17:05.000Z
2021-12-01T20:13:52.000Z
#include "cloth.h" struct clothpoint { vector3 position; vector3 speed; vector3 force; vector3 normal; }; clothpoint cloth[15][10]; vector3 Gravity; vector3 wind; int xrez=14,yrez=9,mod=8; void initcloth() { Gravity.x=-0.0007f; Gravity.y=-0.0008f; Gravity.z=0.0001f; wind.x=-0.00033f; wind.y=-0.0001f; wind.z=-0.00015f; for (int x=0; x<xrez; x++) for (int y=0; y<yrez; y++) { cloth[x][y].position.x=(float)x; cloth[x][y].position.y=(float)y; cloth[x][y].position.z=0; cloth[x][y].speed.x=0; cloth[x][y].speed.y=0; cloth[x][y].speed.z=0; } } void checkspring(int x1,int y1,int x2,int y2,float defaultdistance) { if (x1>=0 && x1<xrez && y1>=0 && y1<yrez && x2>=0 && x2<xrez && y2>=0 && y2<yrez) { float Ks=0.324f; float Kd=0.04f; vector3 p1 = cloth[x1][y1].position; vector3 p2 = cloth[x2][y2].position; vector3 deltaP=v3_sub(p1,p2); float dist=v3_len(deltaP); float Hterm = (dist - defaultdistance) * Ks; vector3 deltaV = v3_sub(cloth[x1][y1].speed,cloth[x2][y2].speed); float Dterm = (v3_dot(deltaV,deltaP) * Kd) / dist; vector3 springForce = v3_normalize(deltaP); float multiplier=-(Hterm+Dterm); if (fabs(multiplier)>=0.0001) { springForce = v3_mults(springForce,multiplier); cloth[x1][y1].force=v3_add(cloth[x1][y1].force,springForce); cloth[x2][y2].force=v3_sub(cloth[x2][y2].force,springForce); } } } void countnormal(int x1, int y1, int x2, int y2, int x3, int y3) { vector3 normal=v3_cross(v3_sub(cloth[x1][y1].position,cloth[x2][y2].position),v3_sub(cloth[x1][y1].position,cloth[x3][y3].position)); vector3 force=v3_mults(v3_normalize(normal),v3_dot(normal,wind)); cloth[x1][y1].force=v3_add(cloth[x1][y1].force,force); cloth[x2][y2].force=v3_add(cloth[x2][y2].force,force); cloth[x3][y3].force=v3_add(cloth[x3][y3].force,force); cloth[x1][y1].normal=v3_add(cloth[x1][y1].normal,normal); cloth[x2][y2].normal=v3_add(cloth[x2][y2].normal,normal); cloth[x3][y3].normal=v3_add(cloth[x3][y3].normal,normal); } void calculatecloth() { int x; for (x=0; x<xrez; x++) for (int y=0; y<yrez; y++) { memset(&cloth[x][y].normal,0,sizeof(vector3)); if (!(x==xrez-1 && y%mod==0)) { cloth[x][y].force=Gravity; cloth[x][y].force=v3_add(cloth[x][y].force,v3_mults(cloth[x][y].speed,-0.002f)); } } for (x=0; x<xrez-1; x++) for (int y=0; y<yrez-1; y++) { countnormal(x,y,x+1,y+1,x+1,y); countnormal(x,y,x,y+1,x+1,y+1); } for (x=0; x<xrez; x++) for (int y=0; y<yrez; y++) cloth[x][y].normal=v3_normalize(cloth[x][y].normal); for (x=0; x<xrez; x++) for (int y=0; y<yrez; y++) { checkspring(x,y,x+1,y,1); checkspring(x,y,x,y+1,1); if (x%2==0) checkspring(x,y,x+2,y,2); if (y%2==0) checkspring(x,y,x,y+2,2); checkspring(x,y,x+1,y+1,(float)sqrt(2.0f)); checkspring(x,y+1,x+1,y,(float)sqrt(2.0f)); } for (x=0; x<xrez; x++) for (int y=0; y<yrez; y++) { if (!(x==xrez-1 && y%mod==0)) cloth[x][y].speed=v3_add(cloth[x][y].speed,cloth[x][y].force); else memset(&cloth[x][y].speed,0,sizeof(vector3)); cloth[x][y].position=v3_add(cloth[x][y].position,cloth[x][y].speed); } } void drawcloth() { float color[4]; glBegin(GL_QUADS); for (int x=0; x<xrez-1; x++) for (int y=0; y<yrez-1; y++) { if (y<=yrez/3) { color[0]=0; color[1]=0.6f; color[2]=0; color[3]=0; } if (y>=yrez/3 && y<=yrez*2/3) { color[0]=1; color[1]=1; color[2]=1; color[3]=0; } if (y>=yrez*2/3) { color[0]=0.8f; color[1]=0; color[2]=0; color[3]=0; } glMaterialfv(GL_FRONT,GL_DIFFUSE,color); glNormal3f(cloth[x ][y ].normal.x,-cloth[x ][y ].normal.y,cloth[x ][y ].normal.z); glVertex3d(-(cloth[x ][y ].position.x-xrez+1)/4,-(cloth[x ][y ].position.y)/4+1.8,(cloth[x ][y ].position.z)/4); glNormal3f(cloth[x+1][y ].normal.x,-cloth[x+1][y ].normal.y,cloth[x+1][y ].normal.z); glVertex3d(-(cloth[x+1][y ].position.x-xrez+1)/4,-(cloth[x+1][y ].position.y)/4+1.8,(cloth[x+1][y ].position.z)/4); glNormal3f(cloth[x+1][y+1].normal.x,-cloth[x+1][y+1].normal.y,cloth[x+1][y+1].normal.z); glVertex3d(-(cloth[x+1][y+1].position.x-xrez+1)/4,-(cloth[x+1][y+1].position.y)/4+1.8,(cloth[x+1][y+1].position.z)/4); glNormal3f(cloth[x ][y+1].normal.x,-cloth[x ][y+1].normal.y,cloth[x ][y+1].normal.z); glVertex3d(-(cloth[x ][y+1].position.x-xrez+1)/4,-(cloth[x ][y+1].position.y)/4+1.8,(cloth[x ][y+1].position.z)/4); } glEnd(); }
27.243902
134
0.60385
ConspiracyHu
4f0f3a2012533b4f9164a4622fe18c65a035b028
7,630
cpp
C++
2019/17/main.cpp
adrian-stanciu/adventofcode
47b3d12226b0c71fff485ef140cd7731c9a5d72f
[ "MIT" ]
null
null
null
2019/17/main.cpp
adrian-stanciu/adventofcode
47b3d12226b0c71fff485ef140cd7731c9a5d72f
[ "MIT" ]
null
null
null
2019/17/main.cpp
adrian-stanciu/adventofcode
47b3d12226b0c71fff485ef140cd7731c9a5d72f
[ "MIT" ]
null
null
null
#include <iostream> #include <set> #include <string> #include <tuple> #include <vector> #include "int_computer.h" using Map = std::vector<std::vector<char>>; auto read_map(const std::vector<long long>& prog) { IntComputer ic(prog); Map map; std::vector<char> row; while (ic.run()) { auto out = *ic.get_last_output(); if (out != '\n') row.push_back(out); else if (!row.empty()) { map.push_back(std::move(row)); row.clear(); } } return map; } auto compute_map_csum(const Map& map) { auto s = 0; for (auto i = 1U; i < map.size() - 1; ++i) for (auto j = 1U; j < map[i].size() - 1; ++j) if (map[i][j] == '#') { if (map[i - 1][j] != '#') continue; if (map[i + 1][j] != '#') continue; if (map[i][j - 1] != '#') continue; if (map[i][j + 1] != '#') continue; s += i * j; } return s; } auto find_start(const Map& map) { auto r = 0; auto c = 0; for (auto i = 0U; i < map.size(); ++i) for (auto j = 0U; j < map[i].size(); ++j) if (map[i][j] == '^' || map[i][j] == 'v' || map[i][j] == '<' || map[i][j] == '>') { r = i; c = j; } auto dr = 0; auto dc = 0; switch (map[r][c]) { case '^': dr = -1; dc = 0; break; case 'v': dr = 1; dc = 0; break; case '<': dr = 0; dc = -1; break; case '>': dr = 0; dc = 1; break; } return std::make_tuple(r, c, dr, dc); } auto get_dir(int r, int c, int next_r, int next_c, int& dr, int& dc) { auto new_dr = next_r - r; auto new_dc = next_c - c; char dir = '?'; if (dr == -1) { if (new_dc == -1) dir = 'L'; else dir = 'R'; } else if (dr == 1) { if (new_dc == -1) dir = 'R'; else dir = 'L'; } else if (dc == -1) { if (new_dr == -1) dir = 'R'; else dir = 'L'; } else if (dc == 1) { if (new_dr == -1) dir = 'L'; else dir = 'R'; } dr = new_dr; dc = new_dc; return dir; } using Path = std::vector<std::pair<char, int>>; auto compute_path(const Map& map) { const auto map_sz = static_cast<int>(map.size()); // direction is represented as deltas on rows and columns auto [r, c, dr, dc] = find_start(map); Path path; while (true) { const auto map_r_sz = static_cast<int>(map[r].size()); auto next_r = r; auto next_c = c; if (r - 1 >= 0 && map[r - 1][c] == '#' && dr == 0) next_r = r - 1; else if (r + 1 < map_sz && map[r + 1][c] == '#' && dr == 0) next_r = r + 1; else if (c - 1 >= 0 && map[r][c - 1] == '#' && dc == 0) next_c = c - 1; else if (c + 1 < map_r_sz && map[r][c + 1] == '#' && dc == 0) next_c = c + 1; // check end of line if (next_r == r && next_c == c) break; auto dir = get_dir(r, c, next_r, next_c, dr, dc); r = next_r; c = next_c; auto len = 1; while (true) { if (r + dr < 0 || r + dr == map_sz) break; if (c + dc < 0 || c + dc == map_r_sz) break; if (map[r + dr][c + dc] != '#') break; r += dr; c += dc; ++len; } path.emplace_back(dir, len); } return path; } auto extract_instruction_block(const std::string& path, unsigned int num_instructions, const std::set<char>& skip_chars) { auto i = 0UL; while (i < path.size()) if (skip_chars.count(path[i]) > 0) i += 2; // skip that char and the following comma else break; std::string block; while (i < path.size()) { if (skip_chars.count(path[i]) > 0) break; block.push_back(path[i]); if (path[i] == ',') { // a new instruction was added --num_instructions; if (num_instructions == 0) return block; } ++i; } return std::string(); } void replace(std::string& where, const std::string& what, const std::string& with) { auto i = 0UL; while (true) { i = where.find(what, i); if (i == std::string::npos) break; where.replace(i, what.size(), with); i += with.size(); } } auto is_valid_main(const std::string& main, unsigned int max_fct_len) { for (auto c : main) if (c != 'A' && c != 'B' && c != 'C' && c != ',') return false; return main.size() <= max_fct_len; } auto split_path(const Path& path, unsigned int max_fct_len) { std::string path_s; for (const auto& p : path) { path_s.push_back(p.first); path_s.push_back(','); path_s.append(std::to_string(p.second)); path_s.push_back(','); } auto max_instr_cnt = max_fct_len / 2; for (auto a_len = 1U; a_len <= max_instr_cnt; ++a_len) { auto path_a = path_s; auto a = extract_instruction_block(path_a, a_len, {}); if (a.empty() || a.size() > max_fct_len) continue; replace(path_a, a, "A,"); for (auto b_len = 1U; b_len <= max_instr_cnt; ++b_len) { auto path_ab = path_a; auto b = extract_instruction_block(path_ab, b_len, {'A'}); if (b.empty() || b.size() > max_fct_len) continue; replace(path_ab, b, "B,"); for (auto c_len = 1U; c_len <= max_instr_cnt; ++c_len) { auto path_abc = path_ab; auto c = extract_instruction_block(path_abc, c_len, {'A', 'B'}); if (c.empty() || c.size() > max_fct_len) continue; replace(path_abc, c, "C,"); if (is_valid_main(path_abc, max_fct_len)) { path_abc.pop_back(); a.pop_back(); b.pop_back(); c.pop_back(); return make_tuple(path_abc, a, b, c); } } } } return make_tuple(std::string(), std::string(), std::string(), std::string()); } void fill_input(IntComputer& ic, const Path& path, unsigned int max_fct_len) { auto [main, a, b, c] = split_path(path, max_fct_len); auto encode_function = [&] (const auto& f) { for (auto i : f) ic.append_input(i); ic.append_input('\n'); }; encode_function(main); encode_function(a); encode_function(b); encode_function(c); ic.append_input('n'); ic.append_input('\n'); } auto traverse_path(const std::vector<long long>& prog, const Path& path, unsigned int max_fct_len) { IntComputer ic(prog); ic.set_mem(0, 2); fill_input(ic, path, max_fct_len); while (ic.run()); return *ic.get_last_output(); } int main() { std::vector<long long> prog; std::string line; while (getline(std::cin, line, ',')) prog.push_back(strtoll(line.data(), nullptr, 10)); auto map = read_map(prog); std::cout << compute_map_csum(map) << "\n"; auto path = compute_path(map); std::cout << traverse_path(prog, path, 20) << "\n"; return 0; }
22.115942
82
0.457012
adrian-stanciu
4f0f65ab5ae72e5b94f52a7a17dd67ec9285dd8b
1,654
cc
C++
seurat/ingest/json_utils_test.cc
Asteur/vrhelper
7b20ac69265ca7390a6c7f52a4f25b0fe87d0b53
[ "Apache-2.0" ]
819
2018-05-04T20:43:55.000Z
2022-03-22T01:21:24.000Z
seurat/ingest/json_utils_test.cc
mebalzer/seurat
78c1293debdd2744cba11395024812f277f613f7
[ "Apache-2.0" ]
35
2018-05-05T03:50:16.000Z
2019-11-04T22:56:02.000Z
seurat/ingest/json_utils_test.cc
mebalzer/seurat
78c1293debdd2744cba11395024812f277f613f7
[ "Apache-2.0" ]
88
2018-05-04T20:53:42.000Z
2022-03-05T03:50:07.000Z
/* Copyright 2017 Google Inc. All Rights Reserved. Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. You may obtain a copy of the License at http://www.apache.org/licenses/LICENSE-2.0 Unless required by applicable law or agreed to in writing, software distributed under the License is distributed on an "AS-IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the License for the specific language governing permissions and limitations under the License. */ #include "seurat/ingest/json_validator.h" #include "gtest/gtest.h" #include "json/json.h" #include "seurat/base/file_system.h" #include "seurat/ingest/json_utils.h" #include "seurat/testing/test_flags.h" namespace seurat { namespace ingest { TEST(JsonUtils, ReadingValidJsonSucceeds) { std::shared_ptr<base::FileSystem> file_system = std::make_shared<base::FileSystem>(testing::GetTestSrcdir()); const char kJsonFilename[] = "com_google_seurat/seurat/ingest/testdata/manifest_v3.json"; Json::Value root; EXPECT_TRUE( JsonUtils::ReadJsonFromFile(kJsonFilename, file_system, &root).ok()); } TEST(JsonUtils, ReadingInvalidJsonFails) { std::shared_ptr<base::FileSystem> file_system = std::make_shared<base::FileSystem>(testing::GetTestSrcdir()); const char kJsonFilename[] = "com_google_seurat/seurat/ingest/testdata/invalid_manifest.json"; Json::Value root; EXPECT_FALSE( JsonUtils::ReadJsonFromFile(kJsonFilename, file_system, &root).ok()); EXPECT_TRUE(root.isNull()); } } // namespace ingest } // namespace seurat
32.431373
75
0.756348
Asteur
4f11a133efd79ee933f8d2829842822ba0464d71
1,668
cc
C++
RecoTracker/TkSeedingLayers/plugins/SimpleClusterProbabilitySeedComparitor.cc
nistefan/cmssw
ea13af97f7f2117a4f590a5e654e06ecd9825a5b
[ "Apache-2.0" ]
3
2018-08-24T19:10:26.000Z
2019-02-19T11:45:32.000Z
RecoTracker/TkSeedingLayers/plugins/SimpleClusterProbabilitySeedComparitor.cc
nistefan/cmssw
ea13af97f7f2117a4f590a5e654e06ecd9825a5b
[ "Apache-2.0" ]
3
2018-08-23T13:40:24.000Z
2019-12-05T21:16:03.000Z
RecoTracker/TkSeedingLayers/plugins/SimpleClusterProbabilitySeedComparitor.cc
nistefan/cmssw
ea13af97f7f2117a4f590a5e654e06ecd9825a5b
[ "Apache-2.0" ]
5
2018-08-21T16:37:52.000Z
2020-01-09T13:33:17.000Z
#include "RecoTracker/TkSeedingLayers/interface/SeedComparitor.h" #include "RecoTracker/TkSeedingLayers/interface/SeedComparitorFactory.h" #include "FWCore/ParameterSet/interface/ParameterSet.h" #include <cmath> class SimpleClusterProbabilitySeedComparitor : public SeedComparitor { public: SimpleClusterProbabilitySeedComparitor(const edm::ParameterSet &cfg, edm::ConsumesCollector& iC) ; ~SimpleClusterProbabilitySeedComparitor() override ; void init(const edm::Event& ev, const edm::EventSetup& es) override {} bool compatible(const SeedingHitSet &hits) const override { return true; } bool compatible(const TrajectoryStateOnSurface &, SeedingHitSet::ConstRecHitPointer hit) const override ; bool compatible(const SeedingHitSet &hits, const GlobalTrajectoryParameters &helixStateAtVertex, const FastHelix &helix) const override { return true; } private: float probCut_; }; SimpleClusterProbabilitySeedComparitor::SimpleClusterProbabilitySeedComparitor(const edm::ParameterSet &cfg, edm::ConsumesCollector& iC) : probCut_(cfg.getParameter<double>("LogPixelProbabilityCut")) { } SimpleClusterProbabilitySeedComparitor::~SimpleClusterProbabilitySeedComparitor() { } bool SimpleClusterProbabilitySeedComparitor::compatible(const TrajectoryStateOnSurface &tsos, SeedingHitSet::ConstRecHitPointer hit) const { return (probCut_ < -15.) || (log10(hit->clusterProbability()) > probCut_); } DEFINE_EDM_PLUGIN(SeedComparitorFactory, SimpleClusterProbabilitySeedComparitor, "SimpleClusterProbabilitySeedComparitor");
39.714286
138
0.755995
nistefan
4f13ad872293ee0f74bed66d018fce30ae31a00b
1,000
cpp
C++
src/prod/src/data/txnreplicator/statemanager/ApplyType.cpp
gridgentoo/ServiceFabricAzure
c3e7a07617e852322d73e6cc9819d266146866a4
[ "MIT" ]
2,542
2018-03-14T21:56:12.000Z
2019-05-06T01:18:20.000Z
src/prod/src/data/txnreplicator/statemanager/ApplyType.cpp
gridgentoo/ServiceFabricAzure
c3e7a07617e852322d73e6cc9819d266146866a4
[ "MIT" ]
994
2019-05-07T02:39:30.000Z
2022-03-31T13:23:04.000Z
src/prod/src/data/txnreplicator/statemanager/ApplyType.cpp
gridgentoo/ServiceFabricAzure
c3e7a07617e852322d73e6cc9819d266146866a4
[ "MIT" ]
300
2018-03-14T21:57:17.000Z
2019-05-06T20:07:00.000Z
// ------------------------------------------------------------ // Copyright (c) Microsoft Corporation. All rights reserved. // Licensed under the MIT License (MIT). See License.txt in the repo root for license information. // ------------------------------------------------------------ #include "stdafx.h" namespace Data { namespace StateManager { namespace ApplyType { void WriteToTextWriter(Common::TextWriter & w, Enum const & val) { switch (val) { case Invalid: w << L"Invalid"; return; case Insert: w << L"Insert"; return; case Delete: w << L"Delete"; return; default: Common::Assert::CodingError("Unknown ApplyType:{0} in State Manager", val); } } ENUM_STRUCTURED_TRACE(ApplyType, Invalid, LastValidEnum) } } }
29.411765
98
0.436
gridgentoo